From 611541d040f1d88489002d86949e2d816f1bb32a Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 28 Aug 2002 08:13:43 +0000 Subject: [PATCH] Added no-op call to sasl_client_auth to enforce SASL 1.5 linking --- libraries/libldap/cyrus.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.39.5