From 1e3aa01b7b377686e60ff0bf43c3b9dec7f3e6de Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 14 Jul 2000 20:57:52 +0000 Subject: [PATCH] Fix SSF reporting. --- servers/slapd/sasl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' ) || -- 2.39.5