mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
fix way long standing bug in args parsing
This commit is contained in:
parent
43f7706c49
commit
ccdb52ed47
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue