From: Baptiste Assmann Date: Wed, 2 Sep 2015 20:05:24 +0000 (+0200) Subject: MINOR: dns: coding style update X-Git-Tag: v1.6-dev5~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=01daef31625b45ba68e4d5def0506f3234360808;p=thirdparty%2Fhaproxy.git MINOR: dns: coding style update No affectation in a if condition. --- diff --git a/src/dns.c b/src/dns.c index 4bc54489f3..bf5afdf964 100644 --- a/src/dns.c +++ b/src/dns.c @@ -165,7 +165,8 @@ void dns_resolve_recv(struct dgram_conn *dgram) query_id = dns_response_get_query_id(buf); /* search the query_id in the pending resolution tree */ - if ((eb = eb32_lookup(&resolvers->query_ids, query_id)) == NULL) { + eb = eb32_lookup(&resolvers->query_ids, query_id); + if (eb == NULL) { /* unknown query id means an outdated response and can be safely ignored */ nameserver->counters.outdated += 1; continue;