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 d7a4dbd36..1f5932183 100644
--- a/scd/app-nks.c
+++ b/scd/app-nks.c
@@ -206,7 +206,7 @@ keygripstr_from_pk_file (app_t app, int fid, char *r_gripstr)
newlen = 1 + buflen[i] - offset[i];
newbuf = xtrymalloc (newlen);
- if (!newlen)
+ if (!newbuf)
{
xfree (buffer[0]);
xfree (buffer[1]);