* mainproc.c (get_pka_address): Fix bug introduced as part of
authorDavid Shaw <dshaw@jabberwocky.com>
Wed, 22 Mar 2006 14:37:53 +0000 (14:37 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Wed, 22 Mar 2006 14:37:53 +0000 (14:37 +0000)
sig_to_notation conversion.  Noted by Peter Palfradrer.

g10/ChangeLog
g10/mainproc.c

index c221695..ad72d50 100644 (file)
@@ -1,3 +1,8 @@
+2006-03-22  David Shaw  <dshaw@jabberwocky.com>
+
+       * mainproc.c (get_pka_address): Fix bug introduced as part of
+       sig_to_notation conversion.  Noted by Peter Palfradrer.
+
 2006-03-21  Werner Koch  <wk@g10code.com>
 
        * cardglue.c (agent_scd_pksign): Allow the use of ripemd-160 along
index dbe64c9..38f57b1 100644 (file)
@@ -1347,7 +1347,7 @@ get_pka_address (PKT_signature *sig)
       /* For now we only use the first valid PKA notation. In future
         we might want to keep additional PKA notations in a linked
         list. */
-      if (is_valid_mailbox (pka->email))
+      if (is_valid_mailbox (nd->value))
        {
          pka = xmalloc (sizeof *pka + strlen(nd->value));
          pka->valid = 0;