Skip to content

Commit

Permalink
Set port to a default sane value if a bogus one is provided when pars…
Browse files Browse the repository at this point in the history
…ing hostnames.

........

Merged revisions 350679 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 350680 from http://svn.asterisk.org/svn/asterisk/branches/10


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@350681 65c4cc65-6c06-0410-ace0-fbb531ad65f3
  • Loading branch information
Mark Michelson committed Jan 13, 2012
1 parent ec2b28d commit 9c16150
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion channels/sip/config_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,9 @@ int sip_parse_host(char *line, int lineno, char **hostname, int *portnum, enum s
ast_log(LOG_NOTICE, "'%s' is not a valid port number on line %d of sip.conf. using default.\n", port, lineno);
port = NULL;
}
} else {
}

if (!port) {
if (*transport & SIP_TRANSPORT_TLS) {
*portnum = STANDARD_TLS_PORT;
} else {
Expand Down

0 comments on commit 9c16150

Please sign in to comment.