[asterisk-commits] tilghman: branch 1.4 r96525 - /branches/1.4/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 4 13:27:25 CST 2008


Author: tilghman
Date: Fri Jan  4 13:27:25 2008
New Revision: 96525

URL: http://svn.digium.com/view/asterisk?view=rev&rev=96525
Log:
If you change the bindaddr in sip.conf to a non-bound address and reload, sip goes kablooie.
Reported and patched by: one47
(Closes issue #11535)

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=96525&r1=96524&r2=96525
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Fri Jan  4 13:27:25 2008
@@ -15487,6 +15487,9 @@
 					sipsock_read_id = ast_io_change(io, sipsock_read_id, sipsock, NULL, 0, NULL);
 				else
 					sipsock_read_id = ast_io_add(io, sipsock, sipsock_read, AST_IO_IN, NULL);
+			} else if (sipsock_read_id) {
+				ast_io_remove(io, sipsock_read_id);
+				sipsock_read_id = NULL;
 			}
 		}
 		/* Check for interfaces needing to be killed */




More information about the asterisk-commits mailing list