[Asterisk-cvs] asterisk/pbx pbx_dundi.c,1.16,1.17

markster at lists.digium.com markster at lists.digium.com
Wed Nov 3 17:02:20 CST 2004


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

Modified Files:
	pbx_dundi.c 
Log Message:
Fix "killa" console issue


Index: pbx_dundi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_dundi.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- pbx_dundi.c	2 Nov 2004 21:56:01 -0000	1.16
+++ pbx_dundi.c	3 Nov 2004 22:04:40 -0000	1.17
@@ -3732,8 +3732,8 @@
 	dr.maxcount = MAX_RESULTS;
 	dr.expiration = DUNDI_DEFAULT_CACHE_TIME;
 	dr.hmd = &hmd;
-	pipe(dr.pfds);
 	dr.pfds[0] = dr.pfds[1] = -1;
+	pipe(dr.pfds);
 	build_transactions(&dr, ttl, 0, &foundcache, &skipped, 0, 1, 1, NULL, avoids, NULL);
 	optimize_transactions(&dr, 0);
 	foundanswers = 0;
@@ -3785,6 +3785,7 @@
 	memset(&dr, 0, sizeof(dr));
 	dr.hmd = hmd;
 	dr.dei = dei;
+	dr.pfds[0] = dr.pfds[1] = -1;
 	strncpy(dr.dcontext, dcontext ? dcontext : "e164", sizeof(dr.dcontext) - 1);
 	memcpy(&dr.query_eid, eid, sizeof(dr.query_eid));
 	if (rooteid)




More information about the svn-commits mailing list