diff options
author | Dan Sledz <dsledz@isilon.com> | 2008-12-05 17:29:38 -0800 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-12-11 10:27:17 +0100 |
commit | 95f7f388c54293c6ad5abeaf960db10c7ac0e6f1 (patch) | |
tree | f0aeae57733939cc35b77c8ec5f55d6afd5c5a65 /source/lib | |
parent | 4711cff492d66ffdee2004aee4097f805dc489bb (diff) | |
download | samba-95f7f388c54293c6ad5abeaf960db10c7ac0e6f1.tar.gz |
Fix logging to syslog
(cherry picked from commit 76467c3b4e89cbeea4cb352ea4cb0b97fab17295)
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/debug.c b/source/lib/debug.c index d91b55dd23b..b3e1a72b954 100644 --- a/source/lib/debug.c +++ b/source/lib/debug.c @@ -851,7 +851,7 @@ void check_log_size( void ) ret = vasprintf(&msgbuf, format_str, ap); va_end(ap); - if (ret == -1) { + if (ret != -1) { syslog(priority, "%s", msgbuf); } SAFE_FREE(msgbuf); |