diff options
author | Joshua Colp <jcolp@digium.com> | 2017-09-08 09:37:51 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-09-08 09:37:51 -0500 |
commit | 2971c2f33388a99804fe15912f7f67e31afe97ec (patch) | |
tree | 87ff6b65c2a3df0a6c1ac02cc4c3ae8a088a798c /channels | |
parent | 584f6abc4ed1212eabb732bffcf6a9c943f23781 (diff) | |
parent | c0d4f1880e0bee6f8a2e283a8333b2b89c543f13 (diff) |
Merge "chan_sip: when getting sip pvt return failure if not found" into 13
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 097c55078..aa6813fd3 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -18569,6 +18569,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; |