From 5941625eb79d899b49f012add4bc29da9f9e648f Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 20 Nov 2000 18:59:42 +0000 Subject: [PATCH] ITS#889: quick fix --- libraries/libldap/cyrus.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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; } -- 2.39.5