diff options
| -rw-r--r-- | dev/ZKAKit/src/User.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dev/ZKAKit/src/User.cc b/dev/ZKAKit/src/User.cc index 9ac154f1..ef35d2f4 100644 --- a/dev/ZKAKit/src/User.cc +++ b/dev/ZKAKit/src/User.cc @@ -105,6 +105,12 @@ namespace Kernel Bool User::Matches(const UserPublicKey password_to_fill) noexcept { + if (!password_to_fill || + *password_to_fill) + return No; + + SizeT len = rt_string_len(password_to_fill); + Char* password = new Char[len]; MUST_PASS(password); |
