From 0fc932daee646c64e92c136594120786f82604b0 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 24 Dec 2003 10:39:14 +0000 Subject: [PATCH] Fix reject error logging --- servers/slurpd/reject.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/slurpd/reject.c b/servers/slurpd/reject.c index b147cc2b22..399d77305c 100644 --- a/servers/slurpd/reject.c +++ b/servers/slurpd/reject.c @@ -108,11 +108,11 @@ write_reject( #endif } else { fseek( rfp, 0, 2 ); - if ( errmsg != NULL ) { - fprintf( rfp, "%s: %s\n", ERROR_STR, errmsg ); - } else { - fprintf( rfp, "%s: %s\n", ERROR_STR, ldap_err2string( lderr )); + fprintf( rfp, "%s: %s", ERROR_STR, ldap_err2string( lderr )); + if ( errmsg && *errmsg ) { + fprintf( rfp, ": %s", errmsg ); } + fprintf( rfp, "\n" ); if ((rc = re->re_write( ri, re, rfp )) < 0 ) { #ifdef NEW_LOGGING LDAP_LOG ( SLURPD, ERR, "write_reject: " -- 2.39.5