From 05b70ebcdceb3d0b2eadd39b84782d22b63ed9a2 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Mon, 22 Nov 2021 18:02:34 +0000 Subject: Fix shutdown=no in ${readsocket}. Bug 2784 Broken-by: 1950cf85b4 --- src/src/lookups/readsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3