summaryrefslogtreecommitdiff
path: root/lib/libc/asr/asr.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2013-04-30 12:02:40 +0000
committerEric Faurot <eric@cvs.openbsd.org>2013-04-30 12:02:40 +0000
commitdec0bf0e99487e968f207098be8e18303010c4a3 (patch)
treebed016b026068092cccacbfbfe9899b90e831ac1 /lib/libc/asr/asr.c
parent32ecf4fb4c8a2d653b10b9bfe7b41da7ae27ea02 (diff)
Do not take external buffers for storing DNS responses in the internal
async API. That is actually useless and it makes the code more complicated. The required buffers are always allocated when needed.
Diffstat (limited to 'lib/libc/asr/asr.c')
-rw-r--r--lib/libc/asr/asr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/asr/asr.c b/lib/libc/asr/asr.c
index 5bde5097142..1aea2bd4e7c 100644
--- a/lib/libc/asr/asr.c
+++ b/lib/libc/asr/asr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asr.c,v 1.24 2013/04/17 19:13:23 otto Exp $ */
+/* $OpenBSD: asr.c,v 1.25 2013/04/30 12:02:39 eric Exp $ */
/*
* Copyright (c) 2010-2012 Eric Faurot <eric@openbsd.org>
*
@@ -277,7 +277,7 @@ async_free(struct async *as)
close(as->as_fd);
if (as->as.dns.obuf && !(as->as.dns.flags & ASYNC_EXTOBUF))
free(as->as.dns.obuf);
- if (as->as.dns.ibuf && !(as->as.dns.flags & ASYNC_EXTIBUF))
+ if (as->as.dns.ibuf)
free(as->as.dns.ibuf);
if (as->as.dns.dname)
free(as->as.dns.dname);