diff options
Diffstat (limited to 'gweb')
-rw-r--r-- | gweb/gresolv.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gweb/gresolv.c b/gweb/gresolv.c index 9505f677..864d2adb 100644 --- a/gweb/gresolv.c +++ b/gweb/gresolv.c @@ -667,6 +667,11 @@ static void parse_response(struct resolv_nameserver *nameserver, ns_initparse(buf, len, &msg); + list = g_queue_find_custom(resolv->query_queue, + GUINT_TO_POINTER(ns_msg_id(msg)), compare_query_msgid); + if (!list) + return; + rcode = ns_msg_getflag(msg, ns_f_rcode); count = ns_msg_count(msg, ns_s_an); @@ -697,11 +702,6 @@ static void parse_response(struct resolv_nameserver *nameserver, break; } - list = g_queue_find_custom(resolv->query_queue, - GUINT_TO_POINTER(ns_msg_id(msg)), compare_query_msgid); - if (!list) - return; - query = list->data; query->nr_ns--; |