]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix usage of 'compression ...' from global config.
authorGert Doering <gert@greenie.muc.de>
Fri, 19 Apr 2013 17:41:08 +0000 (19:41 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 19 May 2013 17:43:50 +0000 (19:43 +0200)
The new compression framework introduced by SVN r8206 only works for
a P2MP server if the compression settings are re-installed for each
client via management interface, ccd/ file or client-connect script,
but the "global" settings get lost due to (needlessly) clearing the
c2.comp_context in the per-client instance.  Fixed.  (also trac#273)

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <1366393268-27392-6-git-send-email-gert@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/7529

src/openvpn/init.c

index 1b455eab088c758b6fa8ea695ae4d4380a59aecf..e700cd6fbdabc7a664c560bc7538229e652090d3 100644 (file)
@@ -3667,10 +3667,6 @@ inherit_context_child (struct context *dest,
       dest->c2.link_socket_info->lsa = &dest->c1.link_socket_addr;
       dest->c2.link_socket_info->connection_established = false;
     }
-
-#ifdef USE_COMP
-  dest->c2.comp_context = NULL;
-#endif
 }
 
 void