浏览代码

Merge branch 'master' into candidate-6.0.0

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 9 年之前
父节点
当前提交
b131986e2d
共有 1 个文件被更改,包括 2 次插入1 次删除
  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");
 					*colon = (char)NULL;
 					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();