summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--curvetun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/curvetun.c b/curvetun.c
index 7507a75..6523737 100644
--- a/curvetun.c
+++ b/curvetun.c
@@ -347,7 +347,7 @@ static void check_config_keypair_or_die(char *home)
if (fd < 0) {
err = EIO;
errstr = "Cannot open pubkey file!\n";
- goto out;
+ goto out_noclose;
}
ret = read(fd, publickey, sizeof(publickey));