Skip to content
Snippets Groups Projects
Commit 259fa9c9 authored by Matt Jordan's avatar Matt Jordan Committed by Gerrit Code Review
Browse files

Merge "chan_sip: Check sip_pvt pointer in ast_channel_get_t38_state(c)"

parents be693539 59a91c35
No related branches found
No related tags found
No related merge requests found
...@@ -4757,6 +4757,11 @@ static int sip_queryoption(struct ast_channel *chan, int option, void *data, int ...@@ -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); struct sip_pvt *p = (struct sip_pvt *) ast_channel_tech_pvt(chan);
char *cp; 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); sip_pvt_lock(p);
   
switch (option) { switch (option) {
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment