]> granicus.if.org Git - openssl/commitdiff
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:03:10 +0000 (15:03 +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)

(cherry picked from commit b4c35656441929ce6f6be112648d637cba51dc91)

crypto/bio/b_sock.c

index 97dcc7005efe17aadabbadf7040e81c28346ce96..99c13a0d22366147772bcba5f5249fac8a5324a9 100644 (file)
@@ -317,7 +317,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)
@@ -335,7 +335,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