Răsfoiți Sursa

Updating code to PuTTY 291c1b07

Source commit: 22b751fd2589d5170f2effdeb25206b1f390d751
Martin Prikryl 6 ani în urmă
părinte
comite
4b420cc5bf
2 a modificat fișierele cu 6 adăugiri și 3 ștergeri
  1. 6 0
      source/putty/portfwd.c
  2. 0 3
      source/putty/wildcard.c

+ 6 - 0
source/putty/portfwd.c

@@ -1068,6 +1068,7 @@ int portfwdmgr_listen(PortFwdManager *mgr, const char *host, int port,
     pfr->remote = NULL;
     pfr->addressfamily = ADDRTYPE_UNSPEC;
 
+    { // WINSCP
     PortFwdRecord *existing = add234(mgr->forwardings, pfr);
     if (existing != pfr) {
         /*
@@ -1076,7 +1077,9 @@ int portfwdmgr_listen(PortFwdManager *mgr, const char *host, int port,
         pfr_free(pfr);
         return FALSE;
     }
+    } // WINSCP
 
+    { // WINSCP
     char *err = pfl_listen(keyhost, keyport, host, port,
                            mgr->cl, conf, &pfr->local, pfr->addressfamily);
     logeventf(mgr->cl->logctx,
@@ -1089,6 +1092,7 @@ int portfwdmgr_listen(PortFwdManager *mgr, const char *host, int port,
         pfr_free(pfr);
         return FALSE;
     }
+    } // WINSCP
 
     return TRUE;
 }
@@ -1107,6 +1111,7 @@ int portfwdmgr_unlisten(PortFwdManager *mgr, const char *host, int port)
     pfr_key.remote = NULL;
     pfr_key.addressfamily = ADDRTYPE_UNSPEC;
 
+    { // WINSCP
     PortFwdRecord *pfr = del234(mgr->forwardings, &pfr_key);
 
     if (!pfr)
@@ -1115,6 +1120,7 @@ int portfwdmgr_unlisten(PortFwdManager *mgr, const char *host, int port)
     logeventf(mgr->cl->logctx, "Closing listening port %s:%d", host, port);
 
     pfr_free(pfr);
+    } // WINSCP
     return TRUE;
 }
 

+ 0 - 3
source/putty/wildcard.c

@@ -10,10 +10,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-/* MPEXT: This makes compilation from command-line hang */
-#ifndef MPEXT
 #include "putty.h"
-#endif
 
 /*
  * Definition of wildcard syntax: