pidgin: d99b567b: Don't crash if the given jabber id is in...
markdoliner at pidgin.im
markdoliner at pidgin.im
Wed Jun 4 19:10:37 EDT 2008
-----------------------------------------------------------------
Revision: d99b567b2df0833b855496e7466e6c4c2d9d2329
Ancestor: f3703d89403f9f8e8b927beeb2f2ac05628c371d
Author: markdoliner at pidgin.im
Date: 2008-06-04T23:05:31
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/d99b567b2df0833b855496e7466e6c4c2d9d2329
Modified files:
libpurple/protocols/jabber/jabber.c
ChangeLog:
Don't crash if the given jabber id is invalid. For example,
bond/_007 at gmail.com
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jabber.c a54cbeecea208633326b9e2363971b7ea2475d99
+++ libpurple/protocols/jabber/jabber.c cc3fd99cf97449784f8e06a850c9a705e34da3bd
@@ -627,7 +627,7 @@ jabber_login(PurpleAccount *account)
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,
More information about the Commits
mailing list