Skip to content

Commit cf1a217

Browse files
committed
patches/gpg2: properly factory reset a nitrokey 3
1 parent 86427bf commit cf1a217

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

patches/gpg2-2.2.21.patch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,15 @@ diff -u --recursive gnupg-2.2.10/common/ttyio.c gnupg-2.2.10/common/ttyio.c.mod
2525
log_error("cannot open '%s': %s\n", tty_get_ttyname (),
2626
strerror(errno) );
2727

28+
diff -u --recursive gnupg-2.2.21-org/scd/apdu.c gnupg-2.2.21/scd/apdu.c
29+
--- gnupg-2.2.21-org/scd/apdu.c 2023-05-14 23:23:35.726974465 +0200
30+
+++ gnupg-2.2.21/scd/apdu.c 2023-05-14 23:24:02.730715934 +0200
31+
@@ -3137,7 +3137,7 @@
32+
}
33+
#undef SHORT_RESULT_BUFFER_SIZE
34+
35+
- if ((sw = trylock_slot (slot)))
36+
+ if ((sw = lock_slot (slot)))
37+
{
38+
xfree (apdu_buffer);
39+
xfree (result_buffer);

0 commit comments

Comments
 (0)