mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merged revisions 316336 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r316336 | russell | 2011-05-03 17:13:31 -0500 (Tue, 03 May 2011) | 8 lines Use htons() instead of ntohs() in some places. (closes issue #19200) Reported by: wdoekes Patches: issue19200-trunk.patch uploaded by wdoekes (license 717) issue19200-1.8.x.patch uploaded by wdoekes (license 717) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@316337 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4678,7 +4678,7 @@ static int set_config(char *config_file, struct sockaddr_in* sin, int reload)
|
||||
v = ast_variable_browse(cfg, "general");
|
||||
while(v) {
|
||||
if (!strcasecmp(v->name, "port")){
|
||||
sin->sin_port = ntohs(atoi(v->value));
|
||||
sin->sin_port = htons(atoi(v->value));
|
||||
if(last_port==0){
|
||||
last_port=sin->sin_port;
|
||||
} else if(sin->sin_port != last_port)
|
||||
@@ -4831,7 +4831,7 @@ static int load_module(void)
|
||||
dundi_set_error(dundi_error_output);
|
||||
|
||||
sin.sin_family = AF_INET;
|
||||
sin.sin_port = ntohs(DUNDI_PORT);
|
||||
sin.sin_port = htons(DUNDI_PORT);
|
||||
sin.sin_addr.s_addr = INADDR_ANY;
|
||||
|
||||
/* Make a UDP socket */
|
||||
|
Reference in New Issue
Block a user