diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2021-12-08 13:13:44 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2021-12-08 13:13:44 +0000 |
commit | 1923663b12d44ff1bbf527a5b145a74fb5a751b7 (patch) | |
tree | 91b60adf2ee9ce158e2e0e672b18c2c6f1b11b63 /src | |
parent | d954f4b2539fb156ff85edb45eddcfb03fa45d79 (diff) |
Errorcheck library call
Diffstat (limited to 'src')
-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); } |