From: Howard Chu Date: Wed, 28 Aug 2002 08:13:43 +0000 (+0000) Subject: Added no-op call to sasl_client_auth to enforce SASL 1.5 linking X-Git-Tag: OPENLDAP_REL_ENG_2_0_26~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=611541d040f1d88489002d86949e2d816f1bb32a;p=thirdparty%2Fopenldap.git Added no-op call to sasl_client_auth to enforce SASL 1.5 linking --- diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index 46fbbe6f29..a7d0f4b108 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -73,6 +73,12 @@ int ldap_int_sasl_init( void ) return 0; } + /* This function is a no-op in Cyrus 1.5.x and does not exist + * in Cyrus 2.x. This reference ensures that we can't pick up + * the wrong version of a dynamic library. + */ + sasl_client_auth(NULL, NULL, NULL, 0, NULL, NULL); + return -1; }