Skip to content
Snippets Groups Projects
Commit c289bac4 authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "chan_sip: Ensure 'qualifygap' isn't negative" into 13

parents ac7caa26 53aa7508
No related branches found
No related tags found
No related merge requests found
...@@ -32900,7 +32900,8 @@ static int reload_config(enum channelreloadreason reason) ...@@ -32900,7 +32900,8 @@ static int reload_config(enum channelreloadreason reason)
ast_log(LOG_WARNING, "Usage of SIP_CAUSE is deprecated. Please use HANGUPCAUSE instead.\n"); ast_log(LOG_WARNING, "Usage of SIP_CAUSE is deprecated. Please use HANGUPCAUSE instead.\n");
} }
} else if (!strcasecmp(v->name, "qualifygap")) { } else if (!strcasecmp(v->name, "qualifygap")) {
if (sscanf(v->value, "%30d", &global_qualify_gap) != 1) { if (sscanf(v->value, "%30d", &global_qualify_gap) != 1
|| global_qualify_gap < 0) {
ast_log(LOG_WARNING, "Invalid qualifygap '%s' at line %d of %s\n", v->value, v->lineno, config); ast_log(LOG_WARNING, "Invalid qualifygap '%s' at line %d of %s\n", v->value, v->lineno, config);
global_qualify_gap = DEFAULT_QUALIFY_GAP; global_qualify_gap = DEFAULT_QUALIFY_GAP;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment