]> git.sur5r.net Git - openldap/commitdiff
ITS#8568
authorQuanah Gibson-Mount <quanah@openldap.org>
Sun, 15 Jan 2017 23:11:53 +0000 (15:11 -0800)
committerQuanah Gibson-Mount <quanah@openldap.org>
Sun, 15 Jan 2017 23:11:53 +0000 (15:11 -0800)
servers/slapd/sasl.c

index cacb66d1373ff651e3dffe34ebc25f67e3914da7..934e92239d44822aa7f0814217ce6f364ab6032e 100644 (file)
@@ -1643,7 +1643,7 @@ int slap_sasl_bind( Operation *op, SlapReply *rs )
        if ( !op->o_conn->c_sasl_bind_in_progress ) {
                /* If we already authenticated once, must use a new context */
                if ( op->o_conn->c_sasl_done ) {
-                       sasl_ssf_t ssf = 0;
+                       sasl_ssf_t *ssf = NULL;
                        const char *authid = NULL;
                        sasl_getprop( ctx, SASL_SSF_EXTERNAL, (void *)&ssf );
                        sasl_getprop( ctx, SASL_AUTH_EXTERNAL, (void *)&authid );
@@ -1656,7 +1656,7 @@ int slap_sasl_bind( Operation *op, SlapReply *rs )
                        slap_sasl_open( op->o_conn, 1 );
                        ctx = op->o_conn->c_sasl_authctx;
                        if ( authid ) {
-                               sasl_setprop( ctx, SASL_SSF_EXTERNAL, &ssf );
+                               sasl_setprop( ctx, SASL_SSF_EXTERNAL, ssf );
                                sasl_setprop( ctx, SASL_AUTH_EXTERNAL, authid );
                                ch_free( (char *)authid );
                        }