Merge pull request #195 from goodrussian666/master

cppcheck cleanup
This commit is contained in:
bol-van
2026-06-23 16:40:01 +00:00
committed by GitHub
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -11,3 +11,4 @@ ipset/zapret-ip*.txt
ipset/zapret-ip*.gz
ipset/zapret-hosts*.txt
ipset/zapret-hosts*.gz
.vscode/
+2
View File
@@ -1978,7 +1978,9 @@ bool rawsend(const struct sockaddr* dst,uint32_t fwmark,const char *ifout,const
ssize_t bytes;
int sock=rawsend_socket(dst->sa_family);
if (sock==-1) return false;
#if defined(BSD) || defined(__linux__)
if (!set_socket_fwmark(sock,fwmark)) return false;
#endif
int salen = dst->sa_family == AF_INET ? sizeof(struct sockaddr_in) : sizeof(struct sockaddr_in6);
struct sockaddr_storage dst2;
memcpy(&dst2,dst,salen);