From f9172a2af558262a6993059114813daf24c9e173 Mon Sep 17 00:00:00 2001 From: Dan Sledz Date: Fri, 5 Dec 2008 17:29:38 -0800 Subject: Fix logging to syslog --- source3/lib/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/lib/debug.c b/source3/lib/debug.c index d64fcb66d98..193e9efc965 100644 --- a/source3/lib/debug.c +++ b/source3/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); -- cgit