diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-08-13 17:53:21 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-08-13 17:53:21 +0200 |
commit | 760bf0877f5057790d719459f9c7eb863ad19683 (patch) | |
tree | a23de89b555adc5acf7943be13b5a3406d3c4fa7 /src | |
parent | 491f4668390b8c4fbca21914baf10625ba8bba6f (diff) | |
download | gnutls-760bf0877f5057790d719459f9c7eb863ad19683.tar.gz |
unload_file was modified to accept a pointer.
Diffstat (limited to 'src')
-rw-r--r-- | src/cli.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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); } |