]> git.sur5r.net Git - openldap/commitdiff
fix way long standing bug in args parsing
authorPierangelo Masarati <ando@openldap.org>
Sat, 23 Sep 2006 12:33:03 +0000 (12:33 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 23 Sep 2006 12:33:03 +0000 (12:33 +0000)
libraries/librewrite/ldapmap.c

index ab566306e6e3f65451f92b47ee40b90d0f2707dc..134d1ab1360ae417012d5289c044f2eac4120183 100644 (file)
@@ -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;