summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libressl/ressl_server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libressl/ressl_server.c b/lib/libressl/ressl_server.c
index 3fbff91be2c..d9faa5da451 100644
--- a/lib/libressl/ressl_server.c
+++ b/lib/libressl/ressl_server.c
@@ -88,7 +88,7 @@ ressl_listen(struct ressl *ctx, const char *host, const char *port, int af)
}
err:
- return (1);
+ return (-1);
}
int
@@ -100,7 +100,7 @@ ressl_accept(struct ressl *ctx)
}
err:
- return (1);
+ return (-1);
}
int
@@ -112,5 +112,5 @@ ressl_accept_socket(struct ressl *ctx, int socket)
}
err:
- return (1);
+ return (-1);
}