summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/src/lookups/readsock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src/lookups/readsock.c b/src/src/lookups/readsock.c
index 7bb3b9ab5..06058ed17 100644
--- a/src/src/lookups/readsock.c
+++ b/src/src/lookups/readsock.c
@@ -255,7 +255,7 @@ if (TRUE)
if (!cctx->tls_ctx)
#endif
{
- FILE * fp = fdopen(cctx->sock, lf.do_shutdown ? "rb" : "wb");
+ FILE * fp = fdopen(cctx->sock, "rb");
ALARM(timeout);
yield = cat_file(fp, NULL, eol);
}