diff options
author | Rich Salz <rsalz@akamai.com> | 2019-07-31 15:24:20 -0400 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-08-02 11:41:54 +0200 |
commit | ff988500c2f39ae61b2836167b6e0e7b2021220c (patch) | |
tree | ead6acf74e2cf8c8be430e02f78dddcf8281b0cc /crypto/bio/bss_acpt.c | |
parent | 823ee00a396f91df4517af13dafae679ae10b3f4 (diff) |
Replace FUNCerr with ERR_raise_data
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9496)
Diffstat (limited to 'crypto/bio/bss_acpt.c')
-rw-r--r-- | crypto/bio/bss_acpt.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crypto/bio/bss_acpt.c b/crypto/bio/bss_acpt.c index c47b75095a..830c1b9679 100644 --- a/crypto/bio/bss_acpt.c +++ b/crypto/bio/bss_acpt.c @@ -226,10 +226,9 @@ static int acpt_state(BIO *b, BIO_ACCEPT *c) BIO_ADDRINFO_socktype(c->addr_iter), BIO_ADDRINFO_protocol(c->addr_iter), 0); if (ret == (int)INVALID_SOCKET) { - FUNCerr("socket", get_last_socket_error()); - ERR_add_error_data(4, - "hostname=", c->param_addr, - " service=", c->param_serv); + ERR_raise_data(ERR_LIB_SYS, get_last_socket_error(), + "calling socket(%s, %s)", + c->param_addr, c->param_serv); BIOerr(BIO_F_ACPT_STATE, BIO_R_UNABLE_TO_CREATE_SOCKET); goto exit_loop; } |