Blame SOURCES/stunnel-5.56-coverity.patch

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