From: Mark Spencer Date: Wed, 3 Nov 2004 22:04:40 +0000 (+0000) Subject: Fix "killa" console issue X-Git-Tag: 1.2.0-beta1~1898 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50010fd3d00de255e1fbc8b4e55554261fa89cbf;p=thirdparty%2Fasterisk.git Fix "killa" console issue git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4156 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index a9a295323c..0c8b865555 100755 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -3732,8 +3732,8 @@ static int dundi_precache_internal(const char *context, const char *number, int 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 @@ static int dundi_query_eid_internal(struct dundi_entity_info *dei, const char *d 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)