]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10092 logging: fix EOL when logfile-format is explicitly set
authorHoward Chu <hyc@openldap.org>
Fri, 8 Dec 2023 03:25:22 +0000 (03:25 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 8 Dec 2023 03:25:22 +0000 (03:25 +0000)
servers/slapd/logging.c

index 5d96e247d5bef6069f210ff05b90aaadfbf9515d..789838aa4137c4fdb541dbb1e2c0a12a85ad65b6 100644 (file)
@@ -159,6 +159,8 @@ slap_debug_print( const char *data )
                        iov[0].iov_base = syslog_prefix;
                        iov[0].iov_len = splen;
 #endif
+               } else {
+                       ptr += poffset; /* only nonzero if logfile-format was explicitly set */
                }
 
 #ifdef _WIN32