aboutsummaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-23 19:51:27 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-23 19:51:27 +0000
commit26bb4c740b12cf3f606f657103a1695c23f6b72f (patch)
tree9d434ae8fd10df3cc42d68539a75409310678160 /init.c
parentbuf_printf will now return false on errors, such as truncation (diff)
downloadopenvpn-26bb4c740b12cf3f606f657103a1695c23f6b72f.tar.xz
Added argv_x functions to buffer.[ch] to be used to safely build
up argv strings for execve without the possibility of truncation or misinterpretation of mid-argument spacing. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3107 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-rw-r--r--init.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.c b/init.c
index 61b23e3..ebdc9f3 100644
--- a/init.c
+++ b/init.c
@@ -465,6 +465,14 @@ init_static (void)
return false;
#endif
+#ifdef ARGV_TEST
+ {
+ void argv_test (void);
+ argv_test ();
+ return false;
+ }
+#endif
+
return true;
}