Fix silly little seg
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
634521b59b
commit
3ba284094e
1 changed files with 1 additions and 1 deletions
|
@ -2421,7 +2421,7 @@ static int sip_register(char *value, int lineno)
|
|||
reg->expire = -1;
|
||||
reg->timeout = -1;
|
||||
reg->refresh = default_expiry;
|
||||
reg->portno = htons(atoi(porta));
|
||||
reg->portno = porta ? htons(atoi(porta)) : 0;
|
||||
reg->callid_valid = 0;
|
||||
reg->ocseq = 101;
|
||||
ast_mutex_lock(®l.lock);
|
||||
|
|
Loading…
Reference in a new issue