From: Kurt Zeilenga Date: Fri, 14 Jul 2000 20:57:52 +0000 (+0000) Subject: Fix SSF reporting. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2446 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1e3aa01b7b377686e60ff0bf43c3b9dec7f3e6de;p=openldap Fix SSF reporting. --- diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index 2db9479577..9f4b98978f 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -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' ) ||