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

index b4f9882..3889919 100644 (file)
@@ -1,3 +1,7 @@
+2010-07-23  Werner Koch  <wk@g10code.com>
+
+       * keybox-blob.c (_keybox_create_x509_blob): Fix reallocation bug.
+
 2008-12-09  Werner Koch  <wk@g10code.com>
 
        * kbxutil.c (main): Call i18n_init before init_common_subsystems.
index 64e534f..01d4ba2 100644 (file)
@@ -898,6 +898,7 @@ _keybox_create_x509_blob (KEYBOXBLOB *r_blob, ksba_cert_t cert,
               rc = gpg_error_from_syserror ();
               goto leave;
             }
+          names = tmp;
         }
       names[blob->nuids++] = p;
       if (!i && (p=x509_email_kludge (p)))