Blame SOURCES/stunnel-5.56-coverity.patch

a776bd
diff -up stunnel-5.48/src/str.c.coverity stunnel-5.48/src/str.c
a776bd
--- stunnel-5.48/src/str.c.coverity	2018-07-02 23:30:10.000000000 +0200
a776bd
+++ stunnel-5.48/src/str.c	2018-09-04 17:24:08.949928906 +0200
a776bd
@@ -165,6 +165,7 @@ char *str_vprintf(const char *format, va
a776bd
     for(;;) {
a776bd
         va_copy(ap, start_ap);
a776bd
         n=vsnprintf(p, size, format, ap);
a776bd
+        va_end(ap);
a776bd
         if(n>-1 && n<(int)size)
a776bd
             return p;
a776bd
         if(n>-1)                /* glibc 2.1 */
a776bd
diff -up stunnel-5.48/src/stunnel.c.coverity stunnel-5.48/src/stunnel.c
a776bd
--- stunnel-5.48/src/stunnel.c.coverity	2018-07-02 23:30:10.000000000 +0200
a776bd
+++ stunnel-5.48/src/stunnel.c	2018-09-04 17:24:08.949928906 +0200
a776bd
@@ -364,7 +364,6 @@ NOEXPORT int accept_connection(SERVICE_O
a776bd
 #endif
a776bd
     if(create_client(fd, s, alloc_client_session(opt, s, s))) {
a776bd
         s_log(LOG_ERR, "Connection rejected: create_client failed");
a776bd
-        closesocket(s);
a776bd
 #ifndef USE_FORK
a776bd
         service_free(opt);
a776bd
 #endif