mirror of
https://repo.or.cz/socat.git
synced 2025-07-16 16:13:24 +00:00
Fixed ignoring of explicit socksport in socks5 addresses (regression)
This commit is contained in:
parent
5e56f25285
commit
e7df880af5
4 changed files with 10 additions and 1 deletions
|
@ -533,6 +533,7 @@ static int xioopen_socks5(
|
|||
target_name = argv[3];
|
||||
target_port = argv[4];
|
||||
} else {
|
||||
socks_port = NULL;
|
||||
target_name = argv[2];
|
||||
target_port = argv[3];
|
||||
}
|
||||
|
@ -548,6 +549,7 @@ static int xioopen_socks5(
|
|||
if (_xioopen_opt_socksport(opts, (char **)&socks_port) < 0) {
|
||||
return STAT_NORETRY;
|
||||
}
|
||||
/*! possible memory leak */
|
||||
|
||||
result = _xioopen_ipapp_prepare(opts, &opts0, socks_server, socks_port,
|
||||
&pf, ipproto,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue