diff libpurple/protocols/jabber/jabber.c @ 23024:01a08e285073

applied changes from f3703d89403f9f8e8b927beeb2f2ac05628c371d through d99b567b2df0833b855496e7466e6c4c2d9d2329
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 19 Jun 2008 03:10:50 +0000
parents 9dc7e1d4da15
children 5c70d953a497
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Thu Jun 19 03:10:06 2008 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Thu Jun 19 03:10:50 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,