diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2012-04-26 10:23:39 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2012-04-26 10:23:39 +0200 |
commit | 8d7522837c6dba3065d24594bcdbe7b99a702cde (patch) | |
tree | 9eb187e31ab2167caeaeea997e5ac729780631c2 /sm | |
parent | avoid buffer strncpy-induced buffer overrun (diff) | |
download | gnupg2-8d7522837c6dba3065d24594bcdbe7b99a702cde.tar.xz gnupg2-8d7522837c6dba3065d24594bcdbe7b99a702cde.zip |
make DNS and URI fields work in gpgsm --gen-key.
* sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Actually set mb_uri and
mb_dns.avoid buffer strncpy-induced buffer overrun
Diffstat (limited to 'sm')
-rw-r--r-- | sm/certreqgen-ui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sm/certreqgen-ui.c b/sm/certreqgen-ui.c index 236d53b36..41492f5b0 100644 --- a/sm/certreqgen-ui.c +++ b/sm/certreqgen-ui.c @@ -339,12 +339,12 @@ gpgsm_gencertreq_tty (ctrl_t ctrl, estream_t output_stream) /* DNS names. */ tty_printf (_("Enter DNS names")); tty_printf (_(" (optional; end with an empty line):\n")); - ask_mb_lines (&mb_email, "Name-DNS: "); + ask_mb_lines (&mb_dns, "Name-DNS: "); /* URIs. */ tty_printf (_("Enter URIs")); tty_printf (_(" (optional; end with an empty line):\n")); - ask_mb_lines (&mb_email, "Name-URI: "); + ask_mb_lines (&mb_uri, "Name-URI: "); /* Want a self-signed certificate? */ |