From 6372adeb20504229bbcc3bc06ad2756839352379 Mon Sep 17 00:00:00 2001 From: ihsinme <61293369+ihsinme@users.noreply.github.com> Date: Fri, 5 Feb 2021 18:27:42 +0300 Subject: [PATCH] Update card-oberthur.c --- src/libopensc/card-oberthur.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libopensc/card-oberthur.c b/src/libopensc/card-oberthur.c index e1e88393..1fc40f7b 100644 --- a/src/libopensc/card-oberthur.c +++ b/src/libopensc/card-oberthur.c @@ -539,7 +539,7 @@ auth_select_file(struct sc_card *card, const struct sc_path *in_path, } } - if (path.len - offs > 0) { + if (path.len > offs) { struct sc_path tmp_path; memset(&tmp_path, 0, sizeof(struct sc_path));