sm: Use the correct string in an error message.
authorWerner Koch <wk@gnupg.org>
Wed, 24 Oct 2018 17:55:19 +0000 (19:55 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 24 Oct 2018 17:55:19 +0000 (19:55 +0200)
* sm/gpgsm.c (main): Fix error message.
--

GnuPG-bug-id: 4219

sm/gpgsm.c

index b054787..072b30d 100644 (file)
@@ -1666,7 +1666,7 @@ main ( int argc, char **argv)
                                      || cmd == aClearsign,
                                      opt.extra_digest_algo))
     log_error (_("digest algorithm '%s' may not be used in %s mode\n"),
                                      || cmd == aClearsign,
                                      opt.extra_digest_algo))
     log_error (_("digest algorithm '%s' may not be used in %s mode\n"),
-               forced_digest_algo,
+               extra_digest_algo,
                gnupg_compliance_option_string (opt.compliance));
 
   if (log_get_errorcount(0))
                gnupg_compliance_option_string (opt.compliance));
 
   if (log_get_errorcount(0))