mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-04 03:20:33 +00:00
Merge "CHAOS: res_pjsip_diversion avoid crash if allocation fails" into 13
This commit is contained in:
@@ -117,8 +117,10 @@ static void set_redirecting_value(char **dst, const pj_str_t *src)
|
||||
{
|
||||
ast_free(*dst);
|
||||
*dst = ast_malloc(pj_strlen(src) + 1);
|
||||
if (*dst) {
|
||||
ast_copy_pj_str(*dst, src, pj_strlen(src) + 1);
|
||||
}
|
||||
}
|
||||
|
||||
static void set_redirecting_id(pjsip_name_addr *name_addr, struct ast_party_id *data,
|
||||
struct ast_set_party_id *update)
|
||||
|
Reference in New Issue
Block a user