projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
634521b
)
Fix silly little seg
author
Mark Spencer
<markster@digium.com>
Tue, 13 Jul 2004 02:34:02 +0000
(
02:34
+0000)
committer
Mark Spencer
<markster@digium.com>
Tue, 13 Jul 2004 02:34:02 +0000
(
02:34
+0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3422
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
523ff8e
..
3d5b823
100755
(executable)
--- 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);