diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2014-08-04 16:19:51 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2014-08-04 16:19:51 +0000 |
commit | 5a0f1e96e1fff799eb8930b975f5d59956d62738 (patch) | |
tree | 383eccb2fc9c4ed7c6d0d63e22310b0fc10d7a9f /lib | |
parent | 0c3935195f7d664d484c7a83bb581db0e1a3829a (diff) |
Return -1 on error (not 1).
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libressl/ressl_server.c | 6 |
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); } |