Ticket #273: 0005-Fix-usage-of-compression-.-from-global-config.patch

File 0005-Fix-usage-of-compression-.-from-global-config.patch, 1.1 KB (added by Gert Döring, 9 years ago)

commited to git. will send to list tomorrow.

  • src/openvpn/init.c

    From 5698bb3829abc8b01eb6882baa26bc131bb6e24d Mon Sep 17 00:00:00 2001
    From: Gert Doering <gert@greenie.muc.de>
    Date: Thu, 18 Apr 2013 21:33:18 +0200
    Subject: [PATCH 5/5] Fix usage of "compression ..." from global config.
    
    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>
    ---
     src/openvpn/init.c | 4 ----
     1 file changed, 4 deletions(-)
    
    diff --git a/src/openvpn/init.c b/src/openvpn/init.c
    index 16501fd..b5bad65 100644
    a b inherit_context_child (struct context *dest, 
    36433643      dest->c2.link_socket_info->lsa = &dest->c1.link_socket_addr;
    36443644      dest->c2.link_socket_info->connection_established = false;
    36453645    }
    3646 
    3647 #ifdef USE_COMP
    3648   dest->c2.comp_context = NULL;
    3649 #endif
    36503646}
    36513647
    36523648void