Blame SOURCES/stunnel-5.56-coverity.patch

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