aboutsummaryrefslogtreecommitdiffstats
path: root/g10/build-packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/build-packet.c')
-rw-r--r--g10/build-packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/build-packet.c b/g10/build-packet.c
index a0493efd2..1e3776186 100644
--- a/g10/build-packet.c
+++ b/g10/build-packet.c
@@ -353,7 +353,7 @@ do_secret_key( IOBUF out, int ctb, PKT_secret_key *sk )
ndays = (u16)((sk->expiredate - sk->timestamp) / 86400L);
else
ndays = 0;
- write_16(a, 0 );
+ write_16(a, ndays);
}
iobuf_put(a, sk->pubkey_algo );
nskey = pubkey_get_nskey( sk->pubkey_algo );