diff options
-rw-r--r-- | channels/chan_gtalk.c | 2 | ||||
-rw-r--r-- | channels/chan_jingle.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_gtalk.c b/channels/chan_gtalk.c index ad335d2f9..76e1399de 100644 --- a/channels/chan_gtalk.c +++ b/channels/chan_gtalk.c @@ -838,7 +838,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) { diff --git a/channels/chan_jingle.c b/channels/chan_jingle.c index 26980640b..50f11538d 100644 --- a/channels/chan_jingle.c +++ b/channels/chan_jingle.c @@ -707,7 +707,7 @@ static struct jingle_pvt *jingle_alloc(struct jingle *client, const char *from, buddy = ASTOBJ_CONTAINER_FIND(&client->connection->buddies, from); if (buddy) resources = buddy->resources; - } else + } else if (client->buddy) resources = client->buddy->resources; while (resources) { if (resources->cap->jingle) { |