From 2acceba5cc299796c7b5b1851a9baeb75d9f32a1 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 1 Oct 2015 17:59:03 +0200 Subject: gpg: Fix a practical hang after use of --faked-system-time. * g10/sign.c (update_keysig_packet): Bail out if we would need to long for a new timestamp. Signed-off-by: Werner Koch --- g10/packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g10/packet.h') diff --git a/g10/packet.h b/g10/packet.h index 1906ec590..eb7da7520 100644 --- a/g10/packet.h +++ b/g10/packet.h @@ -663,7 +663,7 @@ int make_keysig_packet( PKT_signature **ret_sig, PKT_public_key *pk, int (*mksubpkt)(PKT_signature *, void *), void *opaque, const char *cache_nonce); -int update_keysig_packet( PKT_signature **ret_sig, +gpg_error_t update_keysig_packet (PKT_signature **ret_sig, PKT_signature *orig_sig, PKT_public_key *pk, PKT_user_id *uid, -- cgit v1.2.3