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

This commit is contained in:
Matt Jordan
2015-12-09 12:40:58 -06:00
committed by Gerrit Code Review

View File

@@ -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) {