]> git.sur5r.net Git - openldap/commitdiff
Report layer installed only after installed, and fix up report text
authorKurt Zeilenga <kurt@openldap.org>
Mon, 13 Feb 2006 23:26:55 +0000 (23:26 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 13 Feb 2006 23:26:55 +0000 (23:26 +0000)
libraries/libldap/cyrus.c

index 6222090d231e3cc156cc36972955d74e50882eb4..873387317a2f467f54d63fe4a8cb36506631dd2b 100644 (file)
@@ -861,9 +861,6 @@ ldap_int_sasl_bind(
                }
 
                if( ssf && *ssf ) {
-                       if( flags != LDAP_SASL_QUIET ) {
-                               fprintf( stderr, "SASL installing layers\n" );
-                       }
                        if ( ld->ld_defconn->lconn_sasl_sockctx ) {
                                oldctx = ld->ld_defconn->lconn_sasl_sockctx;
                                sasl_dispose( &oldctx );
@@ -871,6 +868,10 @@ ldap_int_sasl_bind(
                        }
                        ldap_pvt_sasl_install( ld->ld_defconn->lconn_sb, ctx );
                        ld->ld_defconn->lconn_sasl_sockctx = ctx;
+
+                       if( flags != LDAP_SASL_QUIET ) {
+                               fprintf( stderr, "SASL data security layer installed.\n" );
+                       }
                }
        }
        ld->ld_defconn->lconn_sasl_authctx = ctx;