Use get_last_sys_error() instead of get_last_rtl_error()
authorRichard Levitte <levitte@openssl.org>
Thu, 26 Apr 2018 07:59:22 +0000 (09:59 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 26 Apr 2018 13:01:16 +0000 (15:01 +0200)
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)

crypto/bio/b_sock.c

index 740ff17494040c440de5310a6a32d324b72404b7..e7a24d02cbe5b0a773bf1c415761f59676fd139b 100644 (file)
@@ -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