mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
Set port to a default sane value if a bogus one is provided when parsing 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
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user