]> git.sur5r.net Git - openldap/commitdiff
In ldap_pvt_sasl_init() treat subsequent invocations as no-ops, not error.
authorLuke Howard <lukeh@openldap.org>
Sun, 16 Jan 2000 01:29:15 +0000 (01:29 +0000)
committerLuke Howard <lukeh@openldap.org>
Sun, 16 Jan 2000 01:29:15 +0000 (01:29 +0000)
libraries/libldap/sasl.c

index 030ff976e6e93ef221235302223f9aacb086a79a..7b8a8ac6cce6f4a4ce77b254bb6fc0e768c28eb4 100644 (file)
@@ -407,7 +407,7 @@ int ldap_pvt_sasl_init( void )
        static int sasl_initialized = 0;
 
        if ( sasl_initialized ) {
-               return -1;
+               return 0;
        }
 #ifndef CSRIMALLOC
        sasl_set_alloc( ber_memalloc, ber_memcalloc, ber_memrealloc, ber_memfree );