mirror of
https://github.com/nmap/nmap.git
synced 2026-09-15 08:48:05 +00:00
Reverted r30784.
The socks4_data structure is not aligned. Sending sizeof(sock4) bytes results in invalid requests. Noticed and reported by David: http://seclists.org/nmap-dev/2013/q2/160
This commit is contained in:
parent
fc472edbd1
commit
153d3e695c
1 changed files with 1 additions and 1 deletions
|
|
@ -170,7 +170,7 @@ static int handle_state_initial(mspool *nsp, msevent *nse, void *udata) {
|
|||
timeout = TIMEVAL_MSEC_SUBTRACT(nse->timeout, nsock_tod);
|
||||
|
||||
nsock_write(nsp, (nsock_iod)nse->iod, nsock_proxy_ev_dispatch, timeout, udata,
|
||||
(char *)&socks4, sizeof(struct socks4_data));
|
||||
(char *)&socks4, 9);
|
||||
|
||||
nsock_readbytes(nsp, (nsock_iod)nse->iod, nsock_proxy_ev_dispatch, timeout,
|
||||
udata, 8);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue