From 509d4339747f11cfbde3a0acc447ef5d521eea93 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Fri, 28 Oct 2016 12:12:28 -0500 Subject: [PATCH 2/3] r5473 svn backport Fix pending query Re #1974: If there is a pending query, set the return value to that query (instead of NULL) Thanks to Richard Mudgett for the patch. --- pjlib-util/src/pjlib-util/resolver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pjlib-util/src/pjlib-util/resolver.c b/pjlib-util/src/pjlib-util/resolver.c index d24ef9d..fe687b7 100644 --- a/pjlib-util/src/pjlib-util/resolver.c +++ b/pjlib-util/src/pjlib-util/resolver.c @@ -940,6 +940,7 @@ PJ_DEF(pj_status_t) pj_dns_resolver_start_query( pj_dns_resolver *resolver, /* Done. This child query will be notified once the "parent" * query completes. */ + p_q = nq; status = PJ_SUCCESS; goto on_return; } -- 1.7.9.5