From: jsing Date: Mon, 4 Aug 2014 16:19:50 +0000 (+0000) Subject: Return -1 on error (not 1). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=031cf80d52d427215a4096ddaea8c9b9d08bce81;p=openbsd Return -1 on error (not 1). --- 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); }