diff options
-rw-r--r-- | channels/chan_gtalk.c | 2 |
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) { |