summaryrefslogtreecommitdiffstats
path: root/src/openvpn/options.h
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-06-18 20:39:04 +0200
committerDavid Sommerseth <davids@redhat.com>2012-06-22 12:17:33 +0200
commitea5e091ea0732184c4cef82889b1a5d15f14828d (patch)
tree9e5764d0301709baffe8d554ec8ed7e15cfdb0ab /src/openvpn/options.h
parent6eb064d8715d865882aabc33a0faaa4435323839 (diff)
downloadopenvpn-ea5e091ea0732184c4cef82889b1a5d15f14828d.tar.gz
openvpn-ea5e091ea0732184c4cef82889b1a5d15f14828d.tar.xz
openvpn-ea5e091ea0732184c4cef82889b1a5d15f14828d.zip
Only use tmpdir if tmp_dir is really used.
This fixes starting openvpn compiled as client only version of systems that have no /tmp (Android). --tmp-dir could only be set if P2MP_SERVER has been enabled too. Signed-off-by: Arne Schwabe <arne@rfc2549.org> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: 1340044749-10694-2-git-send-email-arne@rfc2549.org URL: http://article.gmane.org/gmane.network.openvpn.devel/6741 Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'src/openvpn/options.h')
-rw-r--r--src/openvpn/options.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/openvpn/options.h b/src/openvpn/options.h
index 9b6adea..ee0c69d 100644
--- a/src/openvpn/options.h
+++ b/src/openvpn/options.h
@@ -399,11 +399,13 @@ struct options
struct plugin_option_list *plugin_list;
#endif
- const char *tmp_dir;
+
#if P2MP
#if P2MP_SERVER
+ /* the tmp dir is for now only used in the P2P server context */
+ const char *tmp_dir;
bool server_defined;
in_addr_t server_network;
in_addr_t server_netmask;