mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
-fclose file, even if fileno failed...
This commit is contained in:
@@ -143,7 +143,10 @@ http_ahc (void *cls,
|
||||
{
|
||||
fd = fileno (file);
|
||||
if (-1 == fd)
|
||||
return MHD_NO; /* internal error */
|
||||
{
|
||||
(void) fclose (file);
|
||||
return MHD_NO; /* internal error */
|
||||
}
|
||||
if ( (0 != fstat (fd, &buf)) ||
|
||||
(! S_ISREG (buf.st_mode)) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user