]> git.sur5r.net Git - openldap/commitdiff
Fix SSF reporting.
authorKurt Zeilenga <kurt@openldap.org>
Fri, 14 Jul 2000 20:57:52 +0000 (20:57 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 14 Jul 2000 20:57:52 +0000 (20:57 +0000)
servers/slapd/sasl.c

index 2db9479577f8824a56741acc010cbcc7016a69a6..9f4b98978f99a5b35041dd615fa99dc626971443 100644 (file)
@@ -406,7 +406,7 @@ int slap_sasl_bind(
 
                } else {
                        char *realm = NULL;
-                       sasl_ssf_t ssf = 0;
+                       sasl_ssf_t *ssf = NULL;
 
                        (void) sasl_getprop( ctx,
                                SASL_REALM, (void **)&realm );
@@ -418,7 +418,7 @@ int slap_sasl_bind(
                                "slap_sasl_bind: username=\"%s\" realm=\"%s\" ssf=%lu\n",
                                username ? username : "",
                                realm ? realm : "",
-                               (unsigned long) ssf );
+                               (unsigned long) ( ssf ? *ssf : 0 ) );
 
                        if( !strncasecmp( username, "anonymous", sizeof("anonyous")-1 ) &&
                                ( ( username[sizeof("anonymous")] == '\0' ) ||