]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
unload_file was modified to accept a pointer.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 13 Aug 2011 15:53:21 +0000 (17:53 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 13 Aug 2011 15:53:21 +0000 (17:53 +0200)
src/cli.c

index cccdc44c57a5ef8a92e2628d62659c6d50c3016b..74912a5f5aabe299709e04e10412fc8e0d453564 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -126,9 +126,9 @@ load_file (const char *file)
 }
 
 static void
-unload_file (gnutls_datum_t data)
+unload_file (gnutls_datum_t* data)
 {
-  free (data.data);
+  free (data->data);
 }
 
 #define MAX_CRT 6
@@ -244,7 +244,7 @@ load_keys (void)
           gnutls_x509_crt_deinit(crt_list[i]);
         }
 
-      unload_file (data);
+      unload_file (&data);
 
       ret = gnutls_privkey_init(&x509_key);
       if (ret < 0)
@@ -305,7 +305,7 @@ load_keys (void)
               exit (1);
             }
 
-          unload_file (data);
+          unload_file (&data);
         }
 
       fprintf (stdout, "Processed %d client X.509 certificates...\n",
@@ -342,7 +342,7 @@ load_keys (void)
           exit (1);
         }
  
-      unload_file (data);
+      unload_file (&data);
 
       ret = gnutls_privkey_init(&pgp_key);
       if (ret < 0)
@@ -420,7 +420,7 @@ load_keys (void)
               exit (1);
             }
 
-          unload_file (data);
+          unload_file (&data);
         }