From: Pierangelo Masarati Date: Sat, 23 Sep 2006 12:33:03 +0000 (+0000) Subject: fix way long standing bug in args parsing X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~104 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ccdb52ed47660277e0970a27cce4989b05d761d0;p=openldap fix way long standing bug in args parsing --- diff --git a/libraries/librewrite/ldapmap.c b/libraries/librewrite/ldapmap.c index ab566306e6..134d1ab136 100644 --- a/libraries/librewrite/ldapmap.c +++ b/libraries/librewrite/ldapmap.c @@ -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;