summaryrefslogtreecommitdiffstats
path: root/rfc1035/rfc1035search.c
diff options
context:
space:
mode:
Diffstat (limited to 'rfc1035/rfc1035search.c')
-rw-r--r--rfc1035/rfc1035search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc1035/rfc1035search.c b/rfc1035/rfc1035search.c
index 8e69ad4..019f521 100644
--- a/rfc1035/rfc1035search.c
+++ b/rfc1035/rfc1035search.c
@@ -154,7 +154,7 @@ int recursion_count=10;
namebuf, qtype, qclass)) == 0)
return (-1);
- if (x_flags && RFC1035_X_RANDOMIZE &&
+ if ((x_flags & RFC1035_X_RANDOMIZE) &&
(*ptr)->rcode == RFC1035_RCODE_NOERROR)
rfc1035_rr_rand(*ptr);