diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-03 22:04:40 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-03 22:04:40 +0000 |
commit | 5c444e0ef7dd7264d2bd5b067171f9f351aae2cd (patch) | |
tree | ab45baa6179dcf33acb82b6c1ceb57e9efd1d7fa /pbx | |
parent | ad4e6b9eae4c9d6e3b2a86f5e0941236106d66cb (diff) |
Fix "killa" console issue
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4156 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rwxr-xr-x | pbx/pbx_dundi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index a9a295323..0c8b86555 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) |