[Asterisk-Dev] Race condition in SIP registry?
Luke Howard
lukeh at PADL.COM
Fri Mar 28 17:16:39 MST 2003
Depending on timing Asterisk was crashing on startup...
Index: channels/chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.15
diff -u -r1.15 chan_sip.c
--- channels/chan_sip.c 28 Mar 2003 06:59:34 -0000 1.15
+++ channels/chan_sip.c 29 Mar 2003 00:23:41 -0000
@@ -2169,8 +2169,11 @@
char via[80];
char addr[80];
struct sip_pvt *p;
+ if (r == NULL) {
+ return 0;
+ }
-- Luke
--
Luke Howard | PADL Software Pty Ltd | www.padl.com
More information about the asterisk-dev
mailing list