From 5a00f25542963a5841a5b3ed41aca7faef5ef79d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 13 Dec 2003 15:29:49 +0000 Subject: [PATCH] conn must be non-null --- servers/slapd/sasl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index 0cbb875b55..8149e7336f 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -388,7 +388,7 @@ slap_auxprop_lookup( unsigned ulen) { Operation op = {0}; - int rc, i, doit=0; + int i, doit = 0; Connection *conn = NULL; lookup_info sl; @@ -1718,10 +1718,12 @@ int slap_sasl_getdn( Connection *conn, Operation *op, char *id, int len, int rc, is_dn = SET_NONE, do_norm = 1; struct berval dn2; + assert( conn ); + #ifdef NEW_LOGGING LDAP_LOG( TRANSPORT, ENTRY, "slap_sasl_getdn: conn %d id=%s [len=%d]\n", - conn ? conn->c_connid : -1, id ? (*id ? id : "") : "NULL", len ); + conn->c_connid, id ? (*id ? id : "") : "NULL", len ); #else Debug( LDAP_DEBUG_ARGS, "slap_sasl_getdn: id=%s [len=%d]\n", id ? ( *id ? id : "" ) : "NULL", len, 0 ); -- 2.39.5