aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-nks.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/app-nks.c')
-rw-r--r--scd/app-nks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app-nks.c b/scd/app-nks.c
index bf2ad51b7..31b91ac93 100644
--- a/scd/app-nks.c
+++ b/scd/app-nks.c
@@ -372,7 +372,7 @@ pubkey_from_pk_file (app_t app, int pkfid, int cfid,
newlen = 1 + buflen[i] - offset[i];
newbuf = xtrymalloc (newlen);
- if (!newlen)
+ if (!newbuf)
{
err = gpg_error_from_syserror ();
xfree (buffer[0]);