[Asterisk-cvs] asterisk/channels chan_iax2.c,1.367,1.368

kpfleming kpfleming
Mon Oct 31 18:24:23 CST 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv6276/channels

Modified Files:
	chan_iax2.c 
Log Message:
allow netsock objects to be unref'd so they can disappear when needed (issue #5454)


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.367
retrieving revision 1.368
diff -u -d -r1.367 -r1.368
--- chan_iax2.c	31 Oct 2005 22:01:13 -0000	1.367
+++ chan_iax2.c	31 Oct 2005 23:16:26 -0000	1.368
@@ -8640,6 +8640,7 @@
 					}
 					if (defaultsockfd < 0) 
 						defaultsockfd = ast_netsock_sockfd(ns);
+					ast_netsock_unref(ns);
 				}
 			}
 		} else if (!strcasecmp(v->name, "authdebug"))
@@ -9568,6 +9569,7 @@
 			if (option_verbose > 1)
 				ast_verbose(VERBOSE_PREFIX_2 "Binding IAX2 to default address 0.0.0.0:%d\n", IAX_DEFAULT_PORTNO);
 			defaultsockfd = ast_netsock_sockfd(ns);
+			ast_netsock_unref(ns);
 		}
 	}
 	




More information about the svn-commits mailing list