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:
6ffeccb
)
Fix registration bug with new astobj (bug #3184)
author
Mark Spencer
<markster@digium.com>
Wed, 29 Dec 2004 12:15:44 +0000
(12:15 +0000)
committer
Mark Spencer
<markster@digium.com>
Wed, 29 Dec 2004 12:15:44 +0000
(12:15 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4584
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
b9a1b3b
..
00aca60
100755
(executable)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-5029,7
+5029,8
@@
static int register_verify(struct sip_pvt *p, struct sockaddr_in *sin, struct si
build_contact(p);
peer = find_peer(name, NULL);
if (!(peer && ast_apply_ha(peer->ha, sin))) {
- ASTOBJ_UNREF(peer,sip_destroy_peer);
+ if (peer)
+ ASTOBJ_UNREF(peer,sip_destroy_peer);
}
if (peer) {
if (!ast_test_flag(peer, SIP_DYNAMIC)) {