summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/hints/hints.c4
-rw-r--r--modules/http/debug_opensslkeylog.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/modules/hints/hints.c b/modules/hints/hints.c
index ccbc9880..e2624225 100644
--- a/modules/hints/hints.c
+++ b/modules/hints/hints.c
@@ -44,6 +44,10 @@ static char * bool2jsonstr(bool val)
return result;
}
+ knot_dname_in_bailiwick(qry->sname, (const uint8_t *)"\4arpa\0") > 0 &&
+ (knot_dname_in_bailiwick(qry->sname, (const uint8_t *)"\7in-addr\4arpa\0") > 0
+ || knot_dname_in_bailiwick(qry->sname, (const uint8_t *)"\3ip6\4arpa\0") > 0);
+ if (is_rev) {
static int parse_addr_str(union kr_sockaddr *sa, const char *addr)
{
int family = strchr(addr, ':') ? AF_INET6 : AF_INET;
diff --git a/modules/http/debug_opensslkeylog.c b/modules/http/debug_opensslkeylog.c
index 6709eb73..20699bf9 100644
--- a/modules/http/debug_opensslkeylog.c
+++ b/modules/http/debug_opensslkeylog.c
@@ -69,6 +69,7 @@ static int keylog_file_fd = -1;
#pragma GCC diagnostic ignored "-Wpedantic"
#pragma GCC diagnostic ignored "-Wunused-result"
+#pragma GCC diagnostic ignored "-Wstrict-prototypes"
static inline void put_hex(char *buffer, int pos, char c)
{