According to OpenPGP 3.4.1 specifications subsection 4.4.1:
PW status Bytes
1st byte: 00 = PW1 (no. 81) only valid for one PSO:CDS command
01 = PW1 valid for several PSO:CDS commands
Therefore has_pw1 should be reset to false when the first byte
of the PW status is 0 instead of 1.