From: Howard Chu Date: Wed, 28 Aug 2002 08:35:38 +0000 (+0000) Subject: Added no-op for SASL_VERSION_MAJOR < 2 X-Git-Tag: NO_SLAP_OP_BLOCKS~1139 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5ec4ef6e59ae7a4e87cd0b2fe5f79642f2dc2ae3;p=openldap Added no-op for SASL_VERSION_MAJOR < 2 --- diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index db6b80805b..1e6e9f42cf 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -105,6 +105,10 @@ int ldap_int_sasl_init( void ) return 0; } +#if SASL_VERSION_MAJOR < 2 + /* A no-op to make sure we link with Cyrus 1.5 */ + sasl_client_auth( NULL, NULL, NULL, 0, NULL, NULL ); +#endif return -1; }