From: Howard Chu Date: Wed, 1 Apr 2015 20:17:35 +0000 (+0100) Subject: ITS#8092 no-op if there's no context X-Git-Tag: OPENLDAP_REL_ENG_2_5_0ALPHA~141^2~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=012b7f0e7d540b4e308b6242413d3546ffc4278f;p=thirdparty%2Fopenldap.git ITS#8092 no-op if there's no context --- diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index 66bc8a0266..94cd496df1 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -340,6 +340,10 @@ slap_auxprop_lookup( } } + /* we don't know anything about this, ignore it */ + if ( !conn ) + return SASL_OK; + /* Now see what else needs to be fetched */ for( i = 0; sl.list[i].name; i++ ) { const char *name = sl.list[i].name;