Fix prev commit

This commit is contained in:
Howard Chu 2008-11-21 05:15:20 +00:00
parent 47560a77c7
commit a6933cae27

View File

@ -1024,7 +1024,10 @@ ldap_int_sasl_get_option( LDAP *ld, int option, void *arg )
int
ldap_int_sasl_set_option( LDAP *ld, int option, void *arg )
{
if ( ld == NULL || arg == NULL )
if ( ld == NULL )
return -1;
if ( arg == NULL && option != LDAP_OPT_X_SASL_NOCANON )
return -1;
switch ( option ) {