projects
/
oweals
/
mountd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd5799c
)
mount: fix SIGSEV crashes
author
Hans Dedecker
<dedeckeh@gmail.com>
Tue, 17 Oct 2017 11:40:41 +0000
(13:40 +0200)
committer
Hans Dedecker
<dedeckeh@gmail.com>
Tue, 17 Oct 2017 11:44:34 +0000
(13:44 +0200)
Don't close file descriptor in case file descriptor is NULL
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
mount.c
patch
|
blob
|
history
diff --git
a/mount.c
b/mount.c
index a7f1862f2747919090da85c2c4fcc140ae282463..92606da32d155fa7cca87a258b04bbe70b6ded8f 100644
(file)
--- a/
mount.c
+++ b/
mount.c
@@
-174,7
+174,6
@@
static int mount_check_disc(char *disc)
if(!fp)
{
log_printf("error reading /proc/mounts");
- fclose(fp);
return avail;
}
while((fgets(tmp, 256, fp) != NULL) && (avail == -1))
@@
-615,7
+614,6
@@
static void mount_check_mount_list(void)
if(!fp)
{
log_printf("error reading /proc/mounts");
- fclose(fp);
return;
}
mounted_count = 0;