Don't crash when using realtime in chan_sip without an insecure setting in the database.

(closes issue #10348, reported by link55, fixed by me)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@80390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Russell Bryant 19 years ago
parent 566371bd50
commit c5cf1e50ac

@ -15713,6 +15713,10 @@ static void set_insecure_flags(struct ast_flags *flags, const char *value, int l
{
static int dep_insecure_very = 0;
static int dep_insecure_yes = 0;
if (ast_strlen_zero(value))
return;
if (!strcasecmp(value, "very")) {
ast_set_flag(flags, SIP_INSECURE_PORT | SIP_INSECURE_INVITE);
if(!dep_insecure_very) {

Loading…
Cancel
Save