summaryrefslogtreecommitdiff
path: root/lib/libc/asr/res_search_async.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/asr/res_search_async.c')
-rw-r--r--lib/libc/asr/res_search_async.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/asr/res_search_async.c b/lib/libc/asr/res_search_async.c
index a00defc5ac5..fae802f5e93 100644
--- a/lib/libc/asr/res_search_async.c
+++ b/lib/libc/asr/res_search_async.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: res_search_async.c,v 1.5 2013/04/01 15:49:54 deraadt Exp $ */
+/* $OpenBSD: res_search_async.c,v 1.6 2013/04/01 20:22:27 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -121,7 +121,7 @@ res_search_async_run(struct async *as, struct async_res *ar)
async_set_state(as, ASR_STATE_NOT_FOUND);
break;
}
- if (r > sizeof(fqdn)) {
+ if (r == 0) {
ar->ar_errno = EINVAL;
ar->ar_h_errno = NO_RECOVERY;
ar->ar_datalen = -1;