]> git.sur5r.net Git - openldap/commitdiff
Added no-op call to sasl_client_auth to enforce SASL 1.5 linking
authorHoward Chu <hyc@openldap.org>
Wed, 28 Aug 2002 08:13:43 +0000 (08:13 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 28 Aug 2002 08:13:43 +0000 (08:13 +0000)
libraries/libldap/cyrus.c

index 46fbbe6f2910ac46b36c73734f3da6e8205d5cce..a7d0f4b10840057c992a73b59d6ffba258e5763f 100644 (file)
@@ -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;
 }