Skip to content
Snippets Groups Projects
Commit 9b94e440 authored by Jenkins2's avatar Jenkins2 Committed by Gerrit Code Review
Browse files

Merge "chan_sip: Don't crash in Dial on invalid destination" into 13

parents 2b8a152c ce2c89ce
Branches
Tags
No related merge requests found
......@@ -30466,6 +30466,17 @@ static struct ast_channel *sip_request_call(const char *type, struct ast_format_
ast_string_field_set(p, todnid, dnid);
}
 
/* If stripping the DNID left us with nothing, bail out */
if (ast_strlen_zero(tmp)) {
dialog_unlink_all(p);
dialog_unref(p, "unref dialog p from bad destination");
*cause = AST_CAUSE_DESTINATION_OUT_OF_ORDER;
if (callid) {
ast_callid_unref(callid);
}
return NULL;
}
/* Divvy up the items separated by slashes */
AST_NONSTANDARD_APP_ARGS(args, tmp, '/');
 
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment