From: Pierangelo Masarati Date: Sat, 13 Dec 2003 15:29:49 +0000 (+0000) Subject: conn must be non-null X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~204 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5a00f25542963a5841a5b3ed41aca7faef5ef79d;p=openldap conn must be non-null --- 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 );