diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-09-08 09:51:21 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-09-08 09:51:21 -0500 |
commit | dbb606ba17f84f5c11a7874aff064ac573f113c6 (patch) | |
tree | f15a69bc98035f054f623c6881edec88b3bb9ac0 /channels | |
parent | e5fdee036e8bdc1926d67cb3eeb0b2d6fd8fb7c3 (diff) | |
parent | 6dd4ee8926991647026a4e12028cfb0f91b8b47a (diff) |
Merge "chan_sip: when getting sip pvt return failure if not found" into 15
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 a7b7cfec1..909a5c85d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -18626,6 +18626,11 @@ static int get_sip_pvt_from_replaces(const char *callid, const char *totag, } } + if (!sip_pvt_ptr) { + /* return error if sip_pvt was not found */ + return -1; + } + /* If we're here sip_pvt_ptr has been copied to *out_pvt, prevent RAII_VAR cleanup */ sip_pvt_ptr = NULL; |