projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f373c36
)
log_file may be NULL
author
Alan T. DeKok
<aland@freeradius.org>
Mon, 1 Dec 2008 15:02:15 +0000
(16:02 +0100)
committer
Alan T. DeKok
<aland@freeradius.org>
Mon, 1 Dec 2008 16:47:25 +0000
(17:47 +0100)
Closes Coverity #65
src/main/log.c
patch
|
blob
|
history
diff --git
a/src/main/log.c
b/src/main/log.c
index
273be65
..
925aad6
100644
(file)
--- a/
src/main/log.c
+++ b/
src/main/log.c
@@
-148,7
+148,7
@@
int vradlog(int lvl, const char *fmt, va_list ap)
}
}
- if (!log_fp) {
+ if (!log_fp
&& myconfig->log_file
) {
fp = fopen(myconfig->log_file, "a");
if (!fp) {
fprintf(stderr, "%s: Couldn't open %s for logging: %s\n",