diff keyimport.c @ 256:ac890087b8c1

* keyimport.c: fclose() the key file to make sure data gets written
author Matt Johnston <matt@ucc.asn.au>
date Wed, 30 Nov 2005 06:32:26 +0000
parents c5d3ef11155f
children 740e782679be 454a34b2dfd1
line wrap: on
line diff
--- a/keyimport.c	Tue Nov 08 11:35:52 2005 +0000
+++ b/keyimport.c	Wed Nov 30 06:32:26 2005 +0000
@@ -173,6 +173,8 @@
 		buf_incrpos(buf, len);
 	} while (len > 0 && buf->len != buf->pos);
 
+	fclose(fp);
+
 	if (buf->pos != buf->len) {
 		ret = 0;
 	} else {