mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-23 13:09:00 +00:00
Merge "chan_sip: when getting sip pvt return failure if not found"
This commit is contained in:
@@ -18670,6 +18670,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 */
|
/* If we're here sip_pvt_ptr has been copied to *out_pvt, prevent RAII_VAR cleanup */
|
||||||
sip_pvt_ptr = NULL;
|
sip_pvt_ptr = NULL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user