diff options
author | Richard Levitte <levitte@openssl.org> | 2018-04-26 09:59:22 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2018-04-26 15:01:16 +0200 |
commit | b4c35656441929ce6f6be112648d637cba51dc91 (patch) | |
tree | 876f68eaa33a9b90f9dffff61a96f8712f2846a1 /crypto/bio | |
parent | PEM_def_callback(): use same parameter names as for pem_password_cb (diff) | |
download | openssl-b4c35656441929ce6f6be112648d637cba51dc91.tar.xz openssl-b4c35656441929ce6f6be112648d637cba51dc91.zip |
Use get_last_sys_error() instead of get_last_rtl_error()
get_last_sys_error() already exists, so there's no need for yet
another macro that fulfills the same purpose.
Fixes #4120
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6088)
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/b_sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bio/b_sock.c b/crypto/bio/b_sock.c index 740ff17494..e7a24d02cb 100644 --- a/crypto/bio/b_sock.c +++ b/crypto/bio/b_sock.c @@ -308,7 +308,7 @@ int BIO_socket_nbio(int s, int mode) l = fcntl(s, F_GETFL, 0); if (l == -1) { - SYSerr(SYS_F_FCNTL, get_last_rtl_error()); + SYSerr(SYS_F_FCNTL, get_last_sys_error()); ret = -1; } else { # if defined(O_NONBLOCK) @@ -326,7 +326,7 @@ int BIO_socket_nbio(int s, int mode) ret = fcntl(s, F_SETFL, l); if (ret < 0) { - SYSerr(SYS_F_FCNTL, get_last_rtl_error()); + SYSerr(SYS_F_FCNTL, get_last_sys_error()); } } # else |