1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-23 15:07:03 +01:00

Revert "ecc-sos: Fix SOS handling in do_unprotect."

This reverts commit 43c0c19fcae57529ea57079e034827372ed0b2b7.
This commit is contained in:
NIIBE Yutaka 2020-05-25 14:03:46 +09:00
parent 43c0c19fca
commit bdf0fb3158

View File

@ -451,7 +451,6 @@ do_unprotect (const char *passphrase,
nbytes = (nbits+7)/8;
nbits = nbytes * 8;
if (*buffer)
if (nbits >= 8 && !(*buffer & 0x80))
if (--nbits >= 7 && !(*buffer & 0x40))
if (--nbits >= 6 && !(*buffer & 0x20))