projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e40ded1
)
Request may be NULL
author
Alan T. DeKok
<aland@freeradius.org>
Mon, 1 Dec 2008 14:54:01 +0000
(15:54 +0100)
committer
Alan T. DeKok
<aland@freeradius.org>
Mon, 1 Dec 2008 16:47:25 +0000
(17:47 +0100)
Closes Coverity #66
src/main/log.c
patch
|
blob
|
history
diff --git
a/src/main/log.c
b/src/main/log.c
index
cb843e5
..
273be65
100644
(file)
--- a/
src/main/log.c
+++ b/
src/main/log.c
@@
-389,7
+389,7
@@
void radlog_request(int lvl, int priority, REQUEST *request, const char *msg, ..
len = strlen(buffer);
}
- if (request->module[0]) {
+ if (request
&& request
->module[0]) {
snprintf(buffer + len, sizeof(buffer) + len, "[%s] ", request->module);
len = strlen(buffer);
}