diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-07-23 19:51:27 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-07-23 19:51:27 +0000 |
commit | 26bb4c740b12cf3f606f657103a1695c23f6b72f (patch) | |
tree | 9d434ae8fd10df3cc42d68539a75409310678160 /init.c | |
parent | buf_printf will now return false on errors, such as truncation (diff) | |
download | openvpn-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.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -465,6 +465,14 @@ init_static (void) return false; #endif +#ifdef ARGV_TEST + { + void argv_test (void); + argv_test (); + return false; + } +#endif + return true; } |