diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-21 20:14:00 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-21 20:14:00 +0000 |
commit | 21f542e9ab8c812534485e70a290991208d8b787 (patch) | |
tree | 5f64d49294ac56cc8a471819f1d208107bd9766f /src/namestore | |
parent | 59c2e2ae2391c2678ce54af52b19862b9d01a3fc (diff) | |
download | gnunet-21f542e9ab8c812534485e70a290991208d8b787.tar.gz gnunet-21f542e9ab8c812534485e70a290991208d8b787.zip |
clear private keys in static locations on exit
Diffstat (limited to 'src/namestore')
-rw-r--r-- | src/namestore/gnunet-namestore-fcfsd.c | 1 | ||||
-rw-r--r-- | src/namestore/gnunet-namestore.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/namestore/gnunet-namestore-fcfsd.c b/src/namestore/gnunet-namestore-fcfsd.c index 7149a5206..4b110a548 100644 --- a/src/namestore/gnunet-namestore-fcfsd.c +++ b/src/namestore/gnunet-namestore-fcfsd.c | |||
@@ -1030,6 +1030,7 @@ main (int argc, char *const *argv) | |||
1030 | options, | 1030 | options, |
1031 | &run, NULL)) ? 0 : 1; | 1031 | &run, NULL)) ? 0 : 1; |
1032 | GNUNET_free ((void*) argv); | 1032 | GNUNET_free ((void*) argv); |
1033 | GNUNET_CRYPTO_ecc_key_clear (&fcfs_zone_pkey); | ||
1033 | return ret; | 1034 | return ret; |
1034 | } | 1035 | } |
1035 | 1036 | ||
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c index fb9b017b1..136fec3b8 100644 --- a/src/namestore/gnunet-namestore.c +++ b/src/namestore/gnunet-namestore.c | |||
@@ -748,9 +748,11 @@ main (int argc, char *const *argv) | |||
748 | &run, NULL)) | 748 | &run, NULL)) |
749 | { | 749 | { |
750 | GNUNET_free ((void*) argv); | 750 | GNUNET_free ((void*) argv); |
751 | GNUNET_CRYPTO_ecc_key_clear (&zone_pkey); | ||
751 | return 1; | 752 | return 1; |
752 | } | 753 | } |
753 | GNUNET_free ((void*) argv); | 754 | GNUNET_free ((void*) argv); |
755 | GNUNET_CRYPTO_ecc_key_clear (&zone_pkey); | ||
754 | return ret; | 756 | return ret; |
755 | } | 757 | } |
756 | 758 | ||