From: Tilghman Lesher Date: Fri, 4 Jan 2008 19:27:25 +0000 (+0000) Subject: If you change the bindaddr in sip.conf to a non-bound address and reload, sip goes... X-Git-Tag: 1.4.18~12^2~108 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58cc575e523f65017c577980ad769d67e8f3beac;p=thirdparty%2Fasterisk.git 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) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@96525 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index cd09992d2e..def3620b6f 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -15487,6 +15487,9 @@ static void *do_monitor(void *data) 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 */