Introduction
Introduction Statistics Contact Development Disclaimer Help
handledcgi: close file descriptor if opening a stream for fdopen fails - geomyi…
git clone git://git.codemadness.org/geomyidae
Log
Files
Refs
README
LICENSE
---
commit 2ea7fc9967866e29f459515cbac7e03ce10e23a4
parent e052ad155391912e86548bcb9ba9bac65dde7879
Author: Hiltjo Posthuma <[email protected]>
Date: Sun, 19 Mar 2023 18:52:01 +0100
handledcgi: close file descriptor if opening a stream for fdopen fails
Signed-off-by: Christoph Lohmann <[email protected]>
Diffstat:
M handlr.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
diff --git a/handlr.c b/handlr.c
@@ -245,6 +245,7 @@ handledcgi(int sock, char *file, char *port, char *base, ch…
if (!(fp = fdopen(outpipe[0], "r"))) {
perror("fdopen");
+ close(outpipe[0]);
break;
}
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.