summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-30 18:59:01 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-30 18:59:01 +0200
commitdc423197ba473a94748e571a48e3130b58f4850f (patch)
treec84d18618daa50dbd5d77265fd4cbdcbaafbf005
parenta84a60d8dd6e1ec8a04a52be12e62dea81146d5d (diff)
downloadrsyslog-dc423197ba473a94748e571a48e3130b58f4850f.tar.gz
rsyslog-dc423197ba473a94748e571a48e3130b58f4850f.tar.xz
rsyslog-dc423197ba473a94748e571a48e3130b58f4850f.zip
bugfix: segfault in imklog
A symbol file was closed when it couldn't opened. That lead to a NULL pointer being passed to fclose()
-rw-r--r--plugins/imklog/ksym_mod.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/imklog/ksym_mod.c b/plugins/imklog/ksym_mod.c
index 652effbe..dae0e13d 100644
--- a/plugins/imklog/ksym_mod.c
+++ b/plugins/imklog/ksym_mod.c
@@ -163,7 +163,6 @@ extern int InitMsyms(void)
else
imklogLogIntMsg(LOG_ERR, "Error loading kernel symbols " \
"- %s\n", strerror(errno));
- fclose(ksyms);
return(0);
}