# HG changeset patch # User Mark Doliner # Date 1212620731 0 # Node ID eb27ae817284c91d3138b3e05a11cc8fa88d1cd3 # Parent af23a35234b9cc13aea0f4734cfc3aecdac90de0 Don't crash if the given jabber id is invalid. For example, bond/_007@gmail.com diff -r af23a35234b9 -r eb27ae817284 libpurple/protocols/jabber/jabber.c --- a/libpurple/protocols/jabber/jabber.c Wed Jun 04 22:50:40 2008 +0000 +++ b/libpurple/protocols/jabber/jabber.c Wed Jun 04 23:05:31 2008 +0000 @@ -627,7 +627,7 @@ js->write_buffer = purple_circ_buffer_new(512); js->old_length = 0; js->keepalive_timeout = -1; - js->certificate_CN = g_strdup(connect_server[0] ? connect_server : js->user->domain); + js->certificate_CN = g_strdup(connect_server[0] ? connect_server : js->user ? js->user->domain : NULL); if(!js->user) { purple_connection_error_reason (gc,