From: Nikos Mavrogiannopoulos Date: Sat, 13 Aug 2011 15:53:21 +0000 (+0200) Subject: unload_file was modified to accept a pointer. X-Git-Tag: gnutls_3_0_1~12^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=760bf0877f5057790d719459f9c7eb863ad19683;p=thirdparty%2Fgnutls.git unload_file was modified to accept a pointer. --- diff --git a/src/cli.c b/src/cli.c index cccdc44c57..74912a5f5a 100644 --- 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); }