chiark / gitweb /
src/: Clarify logic in clk_srv (style)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Oct 2014 14:08:14 +0000 (15:08 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 19 Oct 2014 20:14:56 +0000 (21:14 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/types.c

index 00c823b..5fdbf5e 100644 (file)
@@ -1422,7 +1422,8 @@ static adns_status ckl_srv(adns_state ads, adns_queryflags flags,
                           int labnum, const char *dgram,
                           int labstart, int lablen) {
   const char *label = dgram+labstart;
-  if (labnum < 2 && !(flags & adns_qf_quoteok_query)) {
+  if (labnum < 2) {
+    if (flags & adns_qf_quoteok_query) return adns_s_ok;
     if (!lablen || label[0] != '_') return adns_s_querydomaininvalid;
     return adns_s_ok;
   }