[asterisk-commits] qwell: branch 1.4 r55799 - /branches/1.4/channels/chan_gtalk.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Feb 20 19:01:37 MST 2007


Author: qwell
Date: Tue Feb 20 20:01:36 2007
New Revision: 55799

URL: http://svn.digium.com/view/asterisk?view=rev&rev=55799
Log:
Fix segfault when buddy couldn't be found.

Issue 7764, patch by sailer

Modified:
    branches/1.4/channels/chan_gtalk.c

Modified: branches/1.4/channels/chan_gtalk.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_gtalk.c?view=diff&rev=55799&r1=55798&r2=55799
==============================================================================
--- branches/1.4/channels/chan_gtalk.c (original)
+++ branches/1.4/channels/chan_gtalk.c Tue Feb 20 20:01:36 2007
@@ -836,7 +836,7 @@
 			buddy = ASTOBJ_CONTAINER_FIND(&client->connection->buddies, them);
 			if (buddy)
 				resources = buddy->resources;
-		} else 
+		} else if (client->buddy)
 			resources = client->buddy->resources;
 		while (resources) {
 			if (resources->cap->jingle) {



More information about the asterisk-commits mailing list