diff options
-rw-r--r-- | src/src/lookups/readsock.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/src/lookups/readsock.c b/src/src/lookups/readsock.c index 06058ed17..61f729618 100644 --- a/src/src/lookups/readsock.c +++ b/src/src/lookups/readsock.c @@ -256,6 +256,11 @@ if (!cctx->tls_ctx) #endif { FILE * fp = fdopen(cctx->sock, "rb"); + if (!fp) + { + log_write(0, LOG_MAIN|LOG_PANIC, "readsock fdopen: %s\n", strerror(errno)); + goto out; + } ALARM(timeout); yield = cat_file(fp, NULL, eol); } |