aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/zmqinput-keygen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zmqinput-keygen.c b/src/zmqinput-keygen.c
index 0169837..8bf61ac 100644
--- a/src/zmqinput-keygen.c
+++ b/src/zmqinput-keygen.c
@@ -58,6 +58,7 @@ int main(int argc, char** argv)
int rc = zmq_curve_keypair(public_key, secret_key);
if (rc != 0) {
fprintf(stderr, "key generation failed\n");
+ return 1;
}
int fdpub = creat(pubkeyfile, S_IRUSR | S_IWUSR);