mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 10:35:40 +08:00
Add check for nul address
This commit is contained in:
parent
18c1ce0a22
commit
8c372572fc
@ -1,6 +1,6 @@
|
||||
/*
|
||||
3APA3A simpliest proxy server
|
||||
(c) 2007-2008 by ZARAZA <3APA3A@security.nnov.ru>
|
||||
(c) 2002-2017 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
||||
|
||||
please read License Agreement
|
||||
|
||||
@ -42,7 +42,7 @@ static FILTER_ACTION transparent_filter_client(void *fo, struct clientparam * pa
|
||||
|
||||
#ifdef WITH_NETFILTER
|
||||
#ifdef SO_ORIGINAL_DST
|
||||
if(getsockopt(param->clisock, SOL_IP, SO_ORIGINAL_DST,(struct sockaddr *) ¶m->req, &len)){
|
||||
if(getsockopt(param->clisock, SOL_IP, SO_ORIGINAL_DST,(struct sockaddr *) ¶m->req, &len) || SAISNULL(¶m->req)){
|
||||
return PASS;
|
||||
}
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user