From 20c8128d272c4a92edeb83b665cff605c158b051 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 30 Apr 2003 08:08:08 +0000 Subject: [PATCH] ITS#2475 delete bogus SASL2 call --- libraries/libldap/cyrus.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index 46449c54bc..742d136417 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -724,14 +724,12 @@ ldap_int_sasl_bind( fprintf( stderr, "SASL username: %s\n", data ); } -#if SASL_VERSION_MAJOR >= 2 - saslrc = sasl_getprop( ctx, SASL_DEFUSERREALM, (SASL_CONST void **) &data ); -#else +#if SASL_VERSION_MAJOR < 2 saslrc = sasl_getprop( ctx, SASL_REALM, (SASL_CONST void **) &data ); -#endif if( saslrc == SASL_OK && data && *data ) { fprintf( stderr, "SASL realm: %s\n", data ); } +#endif } saslrc = sasl_getprop( ctx, SASL_SSF, (SASL_CONST void **) &ssf ); -- 2.39.5