1
0
mirror of https://github.com/rofl0r/proxychains-ng synced 2025-01-02 01:12:52 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
hc-syn
2b8ac66f47
Merge 04f66223a4 into 1760c93474 2024-09-01 10:38:31 +00:00
rofl0r
1760c93474 core: use string instead of compound literal
fixes compilation when memcpy is defined as a function-like macro at
the cost of one more byte used for the unused zero terminator.

closes #578
2024-08-29 09:31:35 +00:00

View File

@ -1788,7 +1788,7 @@ err_nn:
} else if(!node && !(hints->ai_flags & AI_PASSIVE)) {
af = ((struct sockaddr_in *) &space->sockaddr_space)->sin_family = AF_INET;
memcpy(&((struct sockaddr_in *) &space->sockaddr_space)->sin_addr,
(char[]){127,0,0,1}, 4);
"\177\0\0\1", 4);
}
if(service) mygetservbyname_r(service, NULL, &se_buf, buf, sizeof(buf), &se);