Commit bd6ae6e617b7803abb1da8289467c48b49983968
1 parent
95e42502
Exists in
master
and in
5 other branches
Teste em windows
Showing
1 changed file
with
4 additions
and
6 deletions
Show diff stats
src/lib3270/proxy.c
... | ... | @@ -575,10 +575,8 @@ static int proxy_socks4(int fd, char *host, unsigned short port, int force_a) |
575 | 575 | s += strlen(host) + 1; |
576 | 576 | |
577 | 577 | #if defined(X3270_TRACE) /*[*/ |
578 | - trace_dsn("SOCKS4 Proxy: version 4 connect port %u " | |
579 | - "address 0.0.0.1 user '%s' host '%s'\n", | |
580 | - port, user, host); | |
581 | - trace_netdata('>', (unsigned char *)buf, s - buf); | |
578 | + trace_dsn("SOCKS4 Proxy: version 4 connect port %u address 0.0.0.1 user '%s' host '%s'\n",port, user, host); | |
579 | + trace_netdata(&h3270,'>', (unsigned char *)buf, s - buf); | |
582 | 580 | #endif /*]*/ |
583 | 581 | |
584 | 582 | if (send(fd, buf, s - buf, 0) < 0) { |
... | ... | @@ -604,7 +602,7 @@ static int proxy_socks4(int fd, char *host, unsigned short port, int force_a) |
604 | 602 | trace_dsn("SOCKS4 Proxy: xmit version 4 connect port %u " |
605 | 603 | "address %s user '%s'\n", |
606 | 604 | port, inet_ntoa(ipaddr), user); |
607 | - trace_netdata('>', (unsigned char *)buf, s - buf); | |
605 | + trace_netdata(&h3270,'>', (unsigned char *)buf, s - buf); | |
608 | 606 | #endif /*]*/ |
609 | 607 | |
610 | 608 | if (send(fd, buf, s - buf, 0) < 0) { |
... | ... | @@ -644,7 +642,7 @@ static int proxy_socks4(int fd, char *host, unsigned short port, int force_a) |
644 | 642 | } |
645 | 643 | |
646 | 644 | #if defined(X3270_TRACE) /*[*/ |
647 | - trace_netdata('<', (unsigned char *)rbuf, nread); | |
645 | + trace_netdata(&h3270,'<', (unsigned char *)rbuf, nread); | |
648 | 646 | if (use_4a) { |
649 | 647 | struct in_addr a; |
650 | 648 | ... | ... |