diff --git a/src/plugins/TransparentPlugin/transparent_plugin.c b/src/plugins/TransparentPlugin/transparent_plugin.c index 5db86bf..90842c3 100644 --- a/src/plugins/TransparentPlugin/transparent_plugin.c +++ b/src/plugins/TransparentPlugin/transparent_plugin.c @@ -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