From 8c372572fc372a78e11d6dd7502227456a53a3e3 Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Tue, 17 Oct 2017 18:25:35 +0300 Subject: [PATCH] Add check for nul address --- src/plugins/TransparentPlugin/transparent_plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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