diff options
Diffstat (limited to 'src/lib/libc/net/getaddrinfo.c')
-rw-r--r-- | src/lib/libc/net/getaddrinfo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libc/net/getaddrinfo.c b/src/lib/libc/net/getaddrinfo.c index 98e247bc44..7040fa7c37 100644 --- a/src/lib/libc/net/getaddrinfo.c +++ b/src/lib/libc/net/getaddrinfo.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getaddrinfo.c,v 1.70 2009/09/02 19:07:12 fgsch Exp $ */ | 1 | /* $OpenBSD: getaddrinfo.c,v 1.71 2009/11/18 07:43:22 guenther Exp $ */ |
2 | /* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */ | 2 | /* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */ |
3 | 3 | ||
4 | /* | 4 | /* |
@@ -1062,6 +1062,7 @@ getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, | |||
1062 | continue; | 1062 | continue; |
1063 | } | 1063 | } |
1064 | } else if (type != qtype) { | 1064 | } else if (type != qtype) { |
1065 | #ifndef NO_LOG_BAD_DNS_RESPONSES | ||
1065 | if (type != T_KEY && type != T_SIG) { | 1066 | if (type != T_KEY && type != T_SIG) { |
1066 | struct syslog_data sdata = SYSLOG_DATA_INIT; | 1067 | struct syslog_data sdata = SYSLOG_DATA_INIT; |
1067 | 1068 | ||
@@ -1070,6 +1071,7 @@ getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, | |||
1070 | qname, p_class(C_IN), p_type(qtype), | 1071 | qname, p_class(C_IN), p_type(qtype), |
1071 | p_type(type)); | 1072 | p_type(type)); |
1072 | } | 1073 | } |
1074 | #endif /* NO_LOG_BAD_DNS_RESPONSES */ | ||
1073 | cp += n; | 1075 | cp += n; |
1074 | continue; /* XXX - had_error++ ? */ | 1076 | continue; /* XXX - had_error++ ? */ |
1075 | } | 1077 | } |