mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 17:19:43 -05:00
Fix SSF reporting.
This commit is contained in:
parent
36fb2d9d78
commit
1e3aa01b7b
1 changed files with 2 additions and 2 deletions
|
|
@ -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' ) ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue