]> git.sur5r.net Git - openldap/commitdiff
ITS#889: quick fix
authorKurt Zeilenga <kurt@openldap.org>
Mon, 20 Nov 2000 18:59:42 +0000 (18:59 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 20 Nov 2000 18:59:42 +0000 (18:59 +0000)
libraries/libldap/cyrus.c

index 05691e9de753da37bbbf325fa0a0e285bae2b2c1..3b35dd2fbedeead8de5fa82c2690054afde121d7 100644 (file)
@@ -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;
        }