From 29d7217c64eb07e46b38801272b9e602bec0324b Mon Sep 17 00:00:00 2001 From: thunder2 Date: Fri, 7 Sep 2012 23:32:55 +0000 Subject: [PATCH] Added missing close of the temporary keyring file. Now the keyring is saved properly and the newly added keys are not lost after shutdown of RetroShare. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5523 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- openpgpsdk/src/openpgpsdk/keyring.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openpgpsdk/src/openpgpsdk/keyring.c b/openpgpsdk/src/openpgpsdk/keyring.c index fbe9c719e..e98783b5e 100644 --- a/openpgpsdk/src/openpgpsdk/keyring.c +++ b/openpgpsdk/src/openpgpsdk/keyring.c @@ -1058,8 +1058,7 @@ ops_boolean_t ops_write_keyring_to_file(const ops_keyring_t *keyring,ops_boolean // fprintf(stdout, "\n") ; // } - ops_writer_close(info); - ops_create_info_delete(info); + ops_teardown_file_write(info, fd); return ops_true ; }