]> git.sur5r.net Git - openldap/commitdiff
Fix passwd clearing bug
authorKurt Zeilenga <kurt@openldap.org>
Mon, 6 Nov 2000 15:53:02 +0000 (15:53 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 6 Nov 2000 15:53:02 +0000 (15:53 +0000)
clients/tools/ldapdelete.c
clients/tools/ldapmodify.c
clients/tools/ldapmodrdn.c
clients/tools/ldappasswd.c
clients/tools/ldapsearch.c
servers/slapd/tools/slappasswd.c

index 660ba44c28c08a514a9a5325062b5bdcbc11a514..2bbb3c826f84ebf46f66714527455f0073e8a0bb 100644 (file)
@@ -376,7 +376,7 @@ main( int argc, char **argv )
                {
                        char* p;
 
-                       for( p = optarg; *p == '\0'; p++ ) {
+                       for( p = optarg; *p != '\0'; p++ ) {
                                *p = '\0';
                        }
                }
index 3eb7d1f597743a412703e6ec270827696dafe8e8..3851ad550d91cd2845fcee621c955533641aa72a 100644 (file)
@@ -436,7 +436,7 @@ main( int argc, char **argv )
                {
                        char* p;
 
-                       for( p = optarg; *p == '\0'; p++ ) {
+                       for( p = optarg; *p != '\0'; p++ ) {
                                *p = '\0';
                        }
                }
index fe225d9af4df838f2a55206d818ce3e9f4767826..3ab276dc33608a2063ab46269ba9b2ba8baec8ed 100644 (file)
@@ -113,7 +113,7 @@ main(int argc, char **argv)
     infile = NULL;
     not = contoper = verbose = remove = want_bindpw =
                debug = manageDSAit = referrals = 0;
-    authmethod = LDAP_AUTH_SIMPLE;
+    authmethod = -1;
        version = -1;
 
     prog = (prog = strrchr(argv[0], *LDAP_DIRSEP)) == NULL ? argv[0] : prog + 1;
@@ -398,7 +398,7 @@ main(int argc, char **argv)
                {
                        char* p;
 
-                       for( p = optarg; *p == '\0'; p++ ) {
+                       for( p = optarg; *p != '\0'; p++ ) {
                                *p = '\0';
                        }
                }
index 098b1a778b1cc82599c1ae348104f9a26dab8b4f..667d10ec39d880c43d15bbb7c410801d3ba4f931 100644 (file)
@@ -124,7 +124,7 @@ main( int argc, char *argv[] )
                        {
                                char* p;
 
-                               for( p = optarg; *p == '\0'; p++ ) {
+                               for( p = optarg; *p != '\0'; p++ ) {
                                        *p = '\0';
                                }
                        }
@@ -139,7 +139,7 @@ main( int argc, char *argv[] )
                        {
                                char* p;
 
-                               for( p = optarg; *p == '\0'; p++ ) {
+                               for( p = optarg; *p != '\0'; p++ ) {
                                        *p = '\0';
                                }
                        }
@@ -397,7 +397,7 @@ main( int argc, char *argv[] )
                {
                        char* p;
 
-                       for( p = optarg; *p == '\0'; p++ ) {
+                       for( p = optarg; *p != '\0'; p++ ) {
                                *p = '\0';
                        }
                }
index a7d55c44b667f33922fcaf8e5c334c5d36afd290..28571422cd0278d231ae8804a3d499502e67aeee 100644 (file)
@@ -507,7 +507,7 @@ main( int argc, char **argv )
                {
                        char* p;
 
-                       for( p = optarg; *p == '\0'; p++ ) {
+                       for( p = optarg; *p != '\0'; p++ ) {
                                *p = '\0';
                        }
                }
index 7222b13db289fc00acf8a7c695bd7fef35aece89..64b7a1be5e2889a83cc56cfc623032f933012990 100644 (file)
@@ -56,6 +56,7 @@ main( int argc, char *argv[] )
                switch (i) {
                case 'h':       /* scheme */
                        scheme = strdup (optarg);
+                       break;
 
                case 's':       /* new password (secret) */
                        newpw = strdup (optarg);
@@ -63,7 +64,7 @@ main( int argc, char *argv[] )
                        {
                                char* p;
 
-                               for( p = optarg; *p == '\0'; p++ ) {
+                               for( p = optarg; *p != '\0'; p++ ) {
                                        *p = '\0';
                                }
                        }