summaryrefslogtreecommitdiff
path: root/static-http
diff options
context:
space:
mode:
authorScott Griepentrog <scott@griepentrog.com>2017-09-06 17:05:32 -0400
committerScott Griepentrog <scott@griepentrog.com>2017-09-06 16:14:26 -0500
commitc0d4f1880e0bee6f8a2e283a8333b2b89c543f13 (patch)
tree883f48790ad2c58d3abc510fcf6b85c07be5796c /static-http
parent9a366d24242a0fc1e7d04b8859ac5773193aa932 (diff)
chan_sip: when getting sip pvt return failure if not found
In handle_request_invite, when processing a pickup, a call is made to get_sip_pvt_from_replaces to locate the pvt for the subscription. The pvt is assumed to be valid when zero is returned indicating no error, and is dereferenced which can cause a crash if it was not found. This change checks the not found case and returns -1 which allows the calling code to fail appropriately. ASTERISK-27217 #close Reported-by: Bryan Walters Change-Id: I6bee92b8b8b85fcac3fd66f8c00ab18bc1765612
Diffstat (limited to 'static-http')
0 files changed, 0 insertions, 0 deletions