]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix segfault when buddy couldn't be found.
authorJason Parker <jparker@digium.com>
Wed, 21 Feb 2007 02:01:36 +0000 (02:01 +0000)
committerJason Parker <jparker@digium.com>
Wed, 21 Feb 2007 02:01:36 +0000 (02:01 +0000)
Issue 7764, patch by sailer

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@55799 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_gtalk.c

index 250be0ef4513dd21ff97824054d2125fb8589953..c3ba0d9f19d20f6f2affe16d8bfbf5de016b53af 100644 (file)
@@ -836,7 +836,7 @@ static struct gtalk_pvt *gtalk_alloc(struct gtalk *client, const char *us, const
                        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) {