diff options
Diffstat (limited to 'src/examples/https_fileserver_example.c')
-rw-r--r-- | src/examples/https_fileserver_example.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/examples/https_fileserver_example.c b/src/examples/https_fileserver_example.c index 99ec50b3..1479f23d 100644 --- a/src/examples/https_fileserver_example.c +++ b/src/examples/https_fileserver_example.c | |||
@@ -143,7 +143,10 @@ http_ahc (void *cls, | |||
143 | { | 143 | { |
144 | fd = fileno (file); | 144 | fd = fileno (file); |
145 | if (-1 == fd) | 145 | if (-1 == fd) |
146 | return MHD_NO; /* internal error */ | 146 | { |
147 | (void) fclose (file); | ||
148 | return MHD_NO; /* internal error */ | ||
149 | } | ||
147 | if ( (0 != fstat (fd, &buf)) || | 150 | if ( (0 != fstat (fd, &buf)) || |
148 | (! S_ISREG (buf.st_mode)) ) | 151 | (! S_ISREG (buf.st_mode)) ) |
149 | { | 152 | { |