Browse Source

Merge branch 'master' into candidate-6.0.0

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 9 years ago
parent
commit
b131986e2d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      system/security/htpasswdSecurity/htpasswdSecurity.cpp

+ 2 - 1
system/security/htpasswdSecurity/htpasswdSecurity.cpp

@@ -179,7 +179,8 @@ private:
 						throw MakeStringException(-1, "htpasswd Password file appears malformed");
 						throw MakeStringException(-1, "htpasswd Password file appears malformed");
 					*colon = (char)NULL;
 					*colon = (char)NULL;
 					userMap.setValue(next, colon+1);//username, enctypted password
 					userMap.setValue(next, colon+1);//username, enctypted password
-				} while (next = strtok_r(NULL, seps, &saveptr));
+					next = strtok_r(NULL, seps, &saveptr);
+				} while (next);
 			}
 			}
 
 
 			io->close();
 			io->close();