mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
fix way long standing bug in args parsing
This commit is contained in:
parent
43f7706c49
commit
ccdb52ed47
@ -155,7 +155,7 @@ map_ldap_parse(
|
||||
data->lm_binddn[ l ] = '\0';
|
||||
}
|
||||
} else if ( strncasecmp( argv[ 0 ], "bindpw=", 7 ) == 0 ) {
|
||||
data->lm_bindpw = strdup( argv[ 2 ] + 7 );
|
||||
data->lm_bindpw = strdup( argv[ 0 ] + 7 );
|
||||
if ( data->lm_bindpw == NULL ) {
|
||||
map_ldap_free( data );
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user