summaryrefslogtreecommitdiffstats
path: root/rfc1035/rfc1035search.c
diff options
context:
space:
mode:
authorSam Varshavchik2015-06-27 13:26:50 -0400
committerSam Varshavchik2015-06-27 13:26:50 -0400
commit174541a2e670c0ee70fd2fb3116209f96ecc173e (patch)
treeab31a41aca11ccad42c120ff0abe7e32fd29762f /rfc1035/rfc1035search.c
parent67b9324b4d78f3fc5cb92e0b024c1c5cfca5a39b (diff)
downloadcourier-libs-174541a2e670c0ee70fd2fb3116209f96ecc173e.tar.bz2
Fix some bounds checking issues. Added ESMTP_PREFER_IPV6_MX setting.
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);