aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_gtalk.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_gtalk.c')
-rw-r--r--channels/chan_gtalk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_gtalk.c b/channels/chan_gtalk.c
index 250be0ef4..c3ba0d9f1 100644
--- a/channels/chan_gtalk.c
+++ b/channels/chan_gtalk.c
@@ -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) {