mirror of
https://github.com/nmap/nmap.git
synced 2025-12-20 22:49:01 +00:00
Replaced a couple macros by corresponding static inline functions.
Removed unused PROXY_CTX_NODES() macro.
This commit is contained in:
@@ -112,15 +112,14 @@ void proxy_http_handler(nsock_pool nspool, nsock_event nsevent, void *udata) {
|
||||
struct sockaddr_storage *ss;
|
||||
size_t sslen;
|
||||
unsigned short port;
|
||||
struct proxy_node *next;
|
||||
|
||||
switch (nse->iod->px_ctx->px_state) {
|
||||
case PROXY_STATE_INITIAL:
|
||||
nse->iod->px_ctx->px_state = PROXY_STATE_HTTP_TCP_CONNECTED;
|
||||
|
||||
if (PROXY_CTX_NEXT(nse->iod->px_ctx)) {
|
||||
struct proxy_node *next;
|
||||
|
||||
next = PROXY_CTX_NEXT(nse->iod->px_ctx);
|
||||
next = proxy_ctx_node_next(nse->iod->px_ctx);
|
||||
if (next) {
|
||||
ss = &next->ss;
|
||||
sslen = next->sslen;
|
||||
port = next->port;
|
||||
|
||||
Reference in New Issue
Block a user