Repositories
/
olsrd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7155d58
)
olsr_exit: protect against a NULL message
author
Ferry Huberts
<ferry.huberts@pelagic.nl>
Fri, 6 Nov 2015 14:22:10 +0000
(15:22 +0100)
committer
Ferry Huberts
<ferry.huberts@pelagic.nl>
Fri, 6 Nov 2015 14:22:10 +0000
(15:22 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/olsr.c
patch
|
blob
|
history
diff --git
a/src/olsr.c
b/src/olsr.c
index
9c37043
..
a5eb06e
100644
(file)
--- a/
src/olsr.c
+++ b/
src/olsr.c
@@
-558,8
+558,10
@@
olsr_status_to_string(uint8_t status)
void
olsr_exit(const char *msg, int val)
{
- OLSR_PRINTF(1, "OLSR EXIT: %s\n", msg);
- olsr_syslog(OLSR_LOG_ERR, "olsrd exit: %s\n", msg);
+ if (msg) {
+ OLSR_PRINTF(1, "OLSR EXIT: %s\n", msg);
+ olsr_syslog(OLSR_LOG_ERR, "olsrd exit: %s\n", msg);
+ }
fflush(stdout);
if (olsr_cnf) {