pidgin: 811ab21a: Fix a crash in the zephyr normalize func...

markdoliner at pidgin.im markdoliner at pidgin.im
Mon Mar 3 03:56:51 EST 2008


-----------------------------------------------------------------
Revision: 811ab21a583c493dc88f4a80c77c67accc142287
Ancestor: 5eb8910ea0da617123b3353f088c7a847cbfb478
Author: markdoliner at pidgin.im
Date: 2008-03-03T08:50:27
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/811ab21a583c493dc88f4a80c77c67accc142287

Modified files:
        libpurple/protocols/zephyr/zephyr.c

ChangeLog: 

Fix a crash in the zephyr normalize function that I added when gc is
null (happens when reading in accounts.xml).  My bad.

-------------- next part --------------
============================================================
--- libpurple/protocols/zephyr/zephyr.c	dc185e6df4e010dbf800523743ba226ad40be76e
+++ libpurple/protocols/zephyr/zephyr.c	b282d503470d98f20ea7008e1742ee7721947bd7
@@ -2235,6 +2235,9 @@ static const char *zephyr_normalize(cons
 	char *tmp;
 
 	gc = purple_account_get_connection(account);
+	if (gc == NULL)
+		return NULL;
+
 	tmp = local_zephyr_normalize(gc->proto_data, who);
 
 	if (strlen(tmp) >= sizeof(buf)) {


More information about the Commits mailing list