Browse code

Fix a logic problem in handling of --up scripts in t_client.sh

Previously the $up variable was never reset after being set. This mean that
"--up update_t_client_ips.sh" was appended to all subsequent openvpn
command-lines, even if cached IPs existed.

Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1478695325-18038-1-git-send-email-samuli@openvpn.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg12979.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>

Samuli Seppänen authored on 2016/11/09 21:42:05
Showing 1 changed files
... ...
@@ -276,6 +276,8 @@ do
276 276
     # script to generate them dynamically.
277 277
     if [ -z "$expect_ifconfig4" ] || [ -z "$expect_ifconfig6" ]; then
278 278
         up="--setenv TESTNUM $SUF --setenv TOP_BUILDDIR ${top_builddir} --script-security 2 --up ${srcdir}/update_t_client_ips.sh"
279
+    else
280
+        up=""
279 281
     fi
280 282
 
281 283
     echo -e "\n### test run $SUF: '$test_run_title' ###\n"