Skip to content

Commit

Permalink
core: Fix uninitialized number of interface listeners
Browse files Browse the repository at this point in the history
Closes issue #246, reported by cityant
  • Loading branch information
liviuchircu committed Jun 5, 2014
1 parent 20d1fe6 commit 53e48e1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cfg.y
Expand Up @@ -3207,13 +3207,15 @@ static struct socket_id* mk_listen_id(char* host, int proto, int port)
if (l==0){
LM_CRIT("cfg. parser: out of memory.\n");
}else{
l->name=host;
l->port=port;
l->proto=proto;
l->adv_name=NULL;
l->adv_port=0;
l->next=0;
l->name = host;
l->adv_name = NULL;
l->adv_port = 0;
l->proto = proto;
l->port = port;
l->children = 0;
l->next = NULL;
}

return l;
}

Expand Down

0 comments on commit 53e48e1

Please sign in to comment.