yubikey.c:421:13: warning: The left operand of '!=' is a garbage value [core.UndefinedBinaryOperatorResult]
421 | if (type != NAME_LIST_TAG || tlvlen < 1) {
| ~~~~ ^
Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
unsigned char mode, hash;
tlvlen = buf_tlv(buf, &tlvpos, &type);
- if (type != NAME_LIST_TAG || tlvlen < 1) {
+ if (tlvlen < 1 || type != NAME_LIST_TAG) {
bad_applet:
vpn_progress(vpninfo, PRG_ERR,
_("Unrecognised response from ykneo-oath applet\n"));