From: Pierangelo Masarati Date: Wed, 6 Dec 2006 11:39:07 +0000 (+0000) Subject: don't use conditionals in macro arguments (ITS#4769) X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~414 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b29856b16deba9e26f2a8b8c42bb87073516b00;p=thirdparty%2Fopenldap.git don't use conditionals in macro arguments (ITS#4769) --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index de20a07a86..ddaddd1a60 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -738,9 +738,11 @@ connection_destroy( Connection *c ) if ( sd != AC_SOCKET_INVALID ) { slapd_remove( sd, sb, 1, 0, 0 ); - Statslog( LDAP_DEBUG_STATS, (close_reason - ? "conn=%lu fd=%ld closed (%s)\n" - : "conn=%lu fd=%ld closed\n"), + if ( close_reason == NULL ) { + close_reason = ""; + } + + Statslog( LDAP_DEBUG_STATS, "conn=%lu fd=%ld closed (%s)\n", connid, (long) sd, close_reason, 0, 0 ); } }