diff options
author | Matt Jordan <mjordan@digium.com> | 2015-12-09 12:40:58 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-12-09 12:40:58 -0600 |
commit | 259fa9c901fd10b090d11786a66c4ddfc0bbf346 (patch) | |
tree | 363c61a0ee1a29385d2ca5d565127a39a10c91e2 /channels | |
parent | be693539c3119e0f1ce6d4c031e9fc11e4489bba (diff) | |
parent | 59a91c350a48dcea7dc2bf1e22f5c2cef602772b (diff) |
Merge "chan_sip: Check sip_pvt pointer in ast_channel_get_t38_state(c)"
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 812232ef1..cc73a1505 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4757,6 +4757,11 @@ static int sip_queryoption(struct ast_channel *chan, int option, void *data, int struct sip_pvt *p = (struct sip_pvt *) ast_channel_tech_pvt(chan); char *cp; + if (!p) { + ast_debug(1, "Attempt to Ref a null pointer. Sip private structure is gone!\n"); + return -1; + } + sip_pvt_lock(p); switch (option) { |