Skip to content
Snippets Groups Projects
Commit ccdb52ed authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix way long standing bug in args parsing

parent 43f7706c
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment