]> git.sur5r.net Git - openldap/commitdiff
Added no-op for SASL_VERSION_MAJOR < 2
authorHoward Chu <hyc@openldap.org>
Wed, 28 Aug 2002 08:35:38 +0000 (08:35 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 28 Aug 2002 08:35:38 +0000 (08:35 +0000)
libraries/libldap/cyrus.c

index db6b80805b0049f583aa09e2ad6f1b2579da619d..1e6e9f42cf31f5d322753bd82766dc7f09b196d9 100644 (file)
@@ -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;
 }