diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-14 18:31:57 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-14 18:31:57 +0000 |
commit | 046ccc84f68668abca21a8c78391a7491adcf289 (patch) | |
tree | c51a15e0b9c64e5e3241b5dc24d0f3adcb8308ab /channels | |
parent | 63b4561ff007f71ec3ad67435415d3d0d2f712f0 (diff) |
The call_token on the pvt can occasionally be NULL, causing a crash.
If it is NULL, we can skip this channel, since it can't the one we're looking for.
(closes issue #9299)
Reported by: vazir
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@114120 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_h323.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 57dbf8065..3ae300876 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -1149,7 +1149,7 @@ static struct oh323_pvt *find_call_locked(int call_reference, const char *token) while(pvt) { if (!pvt->needdestroy && ((signed int)pvt->cd.call_reference == call_reference)) { /* Found the call */ - if ((token != NULL) && (!strcmp(pvt->cd.call_token, token))) { + if ((token != NULL) && (pvt->cd.call_token != NULL) && (!strcmp(pvt->cd.call_token, token))) { ast_mutex_lock(&pvt->lock); ast_mutex_unlock(&iflock); return pvt; |