diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2021-02-24 02:46:38 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2021-04-07 09:18:30 +0000 |
commit | 0730b936d7a8f55389873d72cb0996ab941f15d7 (patch) | |
tree | ba00abb449c8171c94ac03f7154646b6c484bfdd /python | |
parent | 609ca657652862fd9c81fd11f818efb74f72ff55 (diff) | |
download | samba-0730b936d7a8f55389873d72cb0996ab941f15d7.tar.gz |
s4:dsdb/password_hash: Add additional check for crypt() and crypt_r() failure
While crypt_rn() always returns a null pointer in the event of
failure, crypt() and crypt_r() may instead return a string starting
with the character '*'. This commit adds a check to detect failure in
this case.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14621
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions