fix reallocation bug
authorWerner Koch <wk@gnupg.org>
Fri, 23 Jul 2010 12:30:34 +0000 (12:30 +0000)
committerWerner Koch <wk@gnupg.org>
Fri, 23 Jul 2010 12:30:34 +0000 (12:30 +0000)
kbx/ChangeLog
kbx/keybox-blob.c

index a64d54c..1056ad1 100644 (file)
@@ -1,3 +1,7 @@
+2010-07-23  Werner Koch  <wk@g10code.com>
+
+       * keybox-blob.c (_keybox_create_x509_blob): Fix reallocation bug.
+
 2010-04-20  Marcus Brinkmann  <marcus@g10code.de>
 
        * keybox-update.c [!HAVE_DOSISH_SYSTEM]: Include
 2010-04-20  Marcus Brinkmann  <marcus@g10code.de>
 
        * keybox-update.c [!HAVE_DOSISH_SYSTEM]: Include
index a144993..a65bb43 100644 (file)
@@ -889,6 +889,7 @@ _keybox_create_x509_blob (KEYBOXBLOB *r_blob, ksba_cert_t cert,
               rc = gpg_error_from_syserror ();
               goto leave;
             }
               rc = gpg_error_from_syserror ();
               goto leave;
             }
+          names = tmp;
         }
       names[blob->nuids++] = p;
       if (!i && (p=x509_email_kludge (p)))
         }
       names[blob->nuids++] = p;
       if (!i && (p=x509_email_kludge (p)))