Report error in key_create.
[u/mdw/catacomb] / key-io.c
index de66a83..7ed0c2c 100644 (file)
--- a/key-io.c
+++ b/key-io.c
@@ -567,6 +567,7 @@ key *key_new(key_file *f, uint32 id, const char *type, time_t exp, int *err)
       k = 0;
     }
   }
+  *err = e;
   return (k);
 }