浏览代码

* Fixed the longjmp compile errors

svn: 1070
Bryan Drewery 22 年之前
父节点
当前提交
351dd91c82
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/net.c

+ 3 - 2
src/net.c

@@ -627,10 +627,11 @@ static int proxy_connect(int sock, char *host, int port, int proxy)
  */
 int open_telnet_raw(int sock, char *server, port_t sport)
 {
+  static port_t port = 0;
+  static int error = 0;
   union sockaddr_union so;
   char host[121] = "";
-  int i, error = 0, rc;
-  port_t port;
+  int i, rc;
   volatile int proxy;
 
   /* firewall?  use socks */