Blame SOURCES/ncat-proxy.patch

846c82
commit 169d7e5a922ef8e63b51ee2bdf4fd4ad60ed2689
846c82
Author: dmiller <dmiller@e0a8ed71-7df4-0310-8962-fdc924857419>
846c82
Date:   Thu Nov 19 17:34:24 2020 +0000
846c82
846c82
    Restore call to post_connect in non-ssl case. Fixes #2149
846c82
846c82
diff --git a/ncat/ncat_connect.c b/ncat/ncat_connect.c
846c82
index 606eac412..f59dd4372 100644
846c82
--- a/ncat/ncat_connect.c
846c82
+++ b/ncat/ncat_connect.c
846c82
@@ -1064,12 +1064,17 @@ int ncat_connect(void)
846c82
             bye("Failed to set hostname on iod.");
846c82
         if (o.ssl)
846c82
         {
846c82
+            /* connect_handler creates stdin_nsi and calls post_connect */
846c82
             nsock_reconnect_ssl(mypool, cs.sock_nsi, connect_handler, o.conntimeout, NULL, NULL);
846c82
         }
846c82
+        else
846c82
+        {
846c82
+            /* Create IOD for nsp->stdin */
846c82
+            if ((cs.stdin_nsi = nsock_iod_new2(mypool, 0, NULL)) == NULL)
846c82
+                bye("Failed to create stdin nsiod.");
846c82
 
846c82
-        /* Create IOD for nsp->stdin */
846c82
-        if ((cs.stdin_nsi = nsock_iod_new2(mypool, 0, NULL)) == NULL)
846c82
-            bye("Failed to create stdin nsiod.");
846c82
+            post_connect(mypool, cs.sock_nsi);
846c82
+        }
846c82
     }
846c82
 
846c82
     /* connect */