From 66a34601ecef2a099403468d239ea3f9b3a3b970 Mon Sep 17 00:00:00 2001 From: Gert Doering Date: Tue, 10 Nov 2015 22:17:03 +0100 Subject: [PATCH] Fix FreeBSD-specific mishandling of gc arena pointer in create_arbitrary_remote() ... and while at it, fix warning about losing "const" qualifier on return. Signed-off-by: Gert Doering Acked-by: Steffan Karger Message-Id: <1447190223-8065-1-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/10478 (cherry picked from commit b33e1355765bbf83f4c8b744c442c7d98df808fa) --- src/openvpn/tun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index a63b95111..684d734c9 100644 --- a/src/openvpn/tun.c +++ b/src/openvpn/tun.c @@ -635,7 +635,7 @@ void delete_route_connected_v6_net(struct tuntap * tt, * is still point to point and no layer 2 resolution is done... */ -char * +const char * create_arbitrary_remote( struct tuntap *tt, struct gc_arena * gc ) { in_addr_t remote; @@ -644,7 +644,7 @@ create_arbitrary_remote( struct tuntap *tt, struct gc_arena * gc ) if ( remote == tt->local ) remote ++; - return print_in_addr_t (remote, 0, &gc); + return print_in_addr_t (remote, 0, gc); } #endif -- 2.47.2