diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/net/gethostnamadr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libc/net/gethostnamadr.c b/src/lib/libc/net/gethostnamadr.c index d49b9cdd7d..f4e655eeaf 100644 --- a/src/lib/libc/net/gethostnamadr.c +++ b/src/lib/libc/net/gethostnamadr.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: gethostnamadr.c,v 1.72 2007/10/11 18:36:41 jakob Exp $ */ | 1 | /* $OpenBSD: gethostnamadr.c,v 1.73 2009/11/18 07:43:22 guenther Exp $ */ |
| 2 | /*- | 2 | /*- |
| 3 | * Copyright (c) 1985, 1988, 1993 | 3 | * Copyright (c) 1985, 1988, 1993 |
| 4 | * The Regents of the University of California. All rights reserved. | 4 | * The Regents of the University of California. All rights reserved. |
| @@ -294,10 +294,12 @@ getanswer(const querybuf *answer, int anslen, const char *qname, int qtype) | |||
| 294 | continue; | 294 | continue; |
| 295 | } | 295 | } |
| 296 | if (type != qtype) { | 296 | if (type != qtype) { |
| 297 | #ifndef NO_LOG_BAD_DNS_RESPONSES | ||
| 297 | syslog(LOG_NOTICE|LOG_AUTH, | 298 | syslog(LOG_NOTICE|LOG_AUTH, |
| 298 | "gethostby*.getanswer: asked for \"%s %s %s\", got type \"%s\"", | 299 | "gethostby*.getanswer: asked for \"%s %s %s\", got type \"%s\"", |
| 299 | qname, p_class(C_IN), p_type(qtype), | 300 | qname, p_class(C_IN), p_type(qtype), |
| 300 | p_type(type)); | 301 | p_type(type)); |
| 302 | #endif /* NO_LOG_BAD_DNS_RESPONSES */ | ||
| 301 | cp += n; | 303 | cp += n; |
| 302 | continue; /* XXX - had_error++ ? */ | 304 | continue; /* XXX - had_error++ ? */ |
| 303 | } | 305 | } |
