diff --git a/g10/sign.c b/g10/sign.c index 6788f7427..6587a6070 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -1514,6 +1514,7 @@ update_keysig_packet( PKT_signature **ret_sig, /* create a new signature packet */ sig = copy_signature (NULL, orig_sig); + sig->digest_algo = digest_algo; /* We need to create a new timestamp so that new sig expiration calculations are done correctly... */