mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 11:42:27 +00:00
Fix "killa" console issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4156 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3732,8 +3732,8 @@ static int dundi_precache_internal(const char *context, const char *number, int
|
|||||||
dr.maxcount = MAX_RESULTS;
|
dr.maxcount = MAX_RESULTS;
|
||||||
dr.expiration = DUNDI_DEFAULT_CACHE_TIME;
|
dr.expiration = DUNDI_DEFAULT_CACHE_TIME;
|
||||||
dr.hmd = &hmd;
|
dr.hmd = &hmd;
|
||||||
pipe(dr.pfds);
|
|
||||||
dr.pfds[0] = dr.pfds[1] = -1;
|
dr.pfds[0] = dr.pfds[1] = -1;
|
||||||
|
pipe(dr.pfds);
|
||||||
build_transactions(&dr, ttl, 0, &foundcache, &skipped, 0, 1, 1, NULL, avoids, NULL);
|
build_transactions(&dr, ttl, 0, &foundcache, &skipped, 0, 1, 1, NULL, avoids, NULL);
|
||||||
optimize_transactions(&dr, 0);
|
optimize_transactions(&dr, 0);
|
||||||
foundanswers = 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));
|
memset(&dr, 0, sizeof(dr));
|
||||||
dr.hmd = hmd;
|
dr.hmd = hmd;
|
||||||
dr.dei = dei;
|
dr.dei = dei;
|
||||||
|
dr.pfds[0] = dr.pfds[1] = -1;
|
||||||
strncpy(dr.dcontext, dcontext ? dcontext : "e164", sizeof(dr.dcontext) - 1);
|
strncpy(dr.dcontext, dcontext ? dcontext : "e164", sizeof(dr.dcontext) - 1);
|
||||||
memcpy(&dr.query_eid, eid, sizeof(dr.query_eid));
|
memcpy(&dr.query_eid, eid, sizeof(dr.query_eid));
|
||||||
if (rooteid)
|
if (rooteid)
|
||||||
|
Reference in New Issue
Block a user