From 031cf80d52d427215a4096ddaea8c9b9d08bce81 Mon Sep 17 00:00:00 2001 From: jsing Date: Mon, 4 Aug 2014 16:19:50 +0000 Subject: [PATCH] Return -1 on error (not 1). --- lib/libressl/ressl_server.c | 6 +++--- 1 file 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); } -- 2.20.1