From: Kurt Zeilenga Date: Mon, 20 Nov 2000 18:59:42 +0000 (+0000) Subject: ITS#889: quick fix X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1647 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5941625eb79d899b49f012add4bc29da9f9e648f;p=openldap ITS#889: quick fix --- diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index 05691e9de7..3b35dd2fbe 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -662,9 +662,15 @@ ldap_int_sasl_external( ber_len_t ssf ) { int sc; - sasl_conn_t *ctx = ld->ld_defconn->lconn_sasl_ctx; + sasl_conn_t *ctx; sasl_external_properties_t extprops; - + + if( ld->ld_defconn == NULL ) { + return LDAP_LOCAL_ERROR; + } + + ctx = ld->ld_defconn->lconn_sasl_ctx; + if ( ctx == NULL ) { return LDAP_LOCAL_ERROR; }