[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Mon Mar 7 17:22:25 UTC 2016


The branch master has been updated
       via  b8972edad65a5245645f40654b903dbcd1a4d5c1 (commit)
      from  0543603abf9d275298a85beeb365db901e092436 (commit)


- Log -----------------------------------------------------------------
commit b8972edad65a5245645f40654b903dbcd1a4d5c1
Author: Alessandro Ghedini <alessandro at ghedini.me>
Date:   Mon Mar 7 12:27:52 2016 +0000

    GH804: Fix unused-result warnings in dasync
    
    Signed-off-by: Rich Salz <rsalz at openssl.org>
    Reviewed-by: Matt Caswell <matt at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 engines/e_dasync.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/engines/e_dasync.c b/engines/e_dasync.c
index 0580103..25dd233 100644
--- a/engines/e_dasync.c
+++ b/engines/e_dasync.c
@@ -338,7 +338,8 @@ static void dummy_pause_job(void) {
 #if defined(ASYNC_WIN)
     WriteFile(pipefds[1], &buf, 1, &numwritten, NULL);
 #elif defined(ASYNC_POSIX)
-    write(pipefds[1], &buf, 1);
+    if (write(pipefds[1], &buf, 1) < 0)
+        return;
 #endif
 
     /* Ignore errors - we carry on anyway */
@@ -348,7 +349,8 @@ static void dummy_pause_job(void) {
 #if defined(ASYNC_WIN)
     ReadFile(pipefds[0], &buf, 1, &numread, NULL);
 #elif defined(ASYNC_POSIX)
-    read(pipefds[0], &buf, 1);
+    if (read(pipefds[0], &buf, 1) < 0)
+        return;
 #endif
 }
 


More information about the openssl-commits mailing list