[openssl-commits] [openssl] master update

paul.dale at oracle.com paul.dale at oracle.com
Tue Mar 20 20:36:58 UTC 2018


The branch master has been updated
       via  a9dd51a800f1920aa7545dc2f4f831000a60af48 (commit)
      from  f6add6ac2c42df37d63b36dbef43e701875893d7 (commit)


- Log -----------------------------------------------------------------
commit a9dd51a800f1920aa7545dc2f4f831000a60af48
Author: Eric Covener <covener at gmail.com>
Date:   Sat Mar 17 14:00:15 2018 -0400

    aix compat fixes for ocsp.c
    
    WCOREDUMP and vsyslog are not portable
    
    Reviewed-by: Paul Dale <paul.dale at oracle.com>
    Reviewed-by: Matt Caswell <matt at openssl.org>
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/5657)

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

Summary of changes:
 apps/ocsp.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/apps/ocsp.c b/apps/ocsp.c
index 7581531..015f4d3 100644
--- a/apps/ocsp.c
+++ b/apps/ocsp.c
@@ -813,7 +813,10 @@ log_message(int level, const char *fmt, ...)
     va_start(ap, fmt);
 # ifdef OCSP_DAEMON
     if (multi) {
-        vsyslog(level, fmt, ap);
+        char buf[1024];
+        if (vsnprintf(buf, sizeof(buf), fmt, ap) > 0) {
+            syslog(level, "%s", buf);
+        }
         if (level >= LOG_ERR)
             ERR_print_errors_cb(print_syslog, &level);
     }
@@ -928,7 +931,10 @@ static void spawn_loop(void)
                     else if (WIFSIGNALED(status))
                         syslog(LOG_WARNING, "child process: %ld, term signal %d%s",
                                (long)fpid, WTERMSIG(status),
-                               WCOREDUMP(status) ? " (core dumped)" : "");
+#ifdef WCOREDUMP
+                               WCOREDUMP(status) ? " (core dumped)" :
+#endif
+                               "");
                     sleep(1);
                 }
                 break;


More information about the openssl-commits mailing list