[Asterisk-cvs] asterisk/channels chan_sip.c,1.603,1.604
markster at lists.digium.com
markster at lists.digium.com
Wed Dec 29 07:20:55 CST 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv18691/channels
Modified Files:
chan_sip.c
Log Message:
Fix registration bug with new astobj (bug #3184)
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.603
retrieving revision 1.604
diff -u -d -r1.603 -r1.604
--- chan_sip.c 28 Dec 2004 23:27:44 -0000 1.603
+++ chan_sip.c 29 Dec 2004 12:15:44 -0000 1.604
@@ -5029,7 +5029,8 @@
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)) {
More information about the svn-commits
mailing list