mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Return -1 on error (not 1).
This commit is contained in:
parent
324b29ae70
commit
031cf80d52
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user