]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Simplify.
authorSimon Josefsson <simon@josefsson.org>
Tue, 13 Feb 2007 17:31:11 +0000 (17:31 +0000)
committerSimon Josefsson <simon@josefsson.org>
Tue, 13 Feb 2007 17:31:11 +0000 (17:31 +0000)
lib/x509/x509.c

index 2842c4a54cc48bedecfeff8473e3948e3cbc3f7c..a7f6c304624aefb4e5e48daec283b608a3593609 100644 (file)
@@ -2466,8 +2466,6 @@ cleanup:
 
 #endif
 
-#define CLEAR_CERTS \
-    for(j=0;j<count;j++) gnutls_x509_crt_deinit( certs[j])
 /**
   * gnutls_x509_crt_list_import - This function will import a PEM encoded certificate list
   * @certs: The structures to store the parsed certificate. Must not be initialized.
@@ -2607,6 +2605,7 @@ gnutls_x509_crt_list_import (gnutls_x509_crt_t * certs,
     return GNUTLS_E_SHORT_MEMORY_BUFFER;
 
 error:
-  CLEAR_CERTS;
+  for (j=0; j < count; j++)
+    gnutls_x509_crt_deinit (certs[j]);
   return ret;
 }