diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-13 02:34:02 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-13 02:34:02 +0000 |
commit | 3525e2fa78499438bdcb5d87bff2e914ffb5a8eb (patch) | |
tree | 05da26661d332e77269daf325b08d99b68ddcc48 /channels | |
parent | 20c9b9a2c7e4fb80336fa36b47128cc7d743ef2d (diff) |
Fix silly little seg
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3422 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 523ff8e81..3d5b8230a 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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); |