From 308a6d0c3ba6f22d00b7a360a8621db5e5f9647a Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Thu, 21 Jun 2018 09:52:53 +0200 Subject: pppd_compat: fix argv[0] when calling ip-pre-up The first argument passed to the ip-pre-up script, was mistakenly set to the value of ip-up. Signed-off-by: Guillaume Nault --- accel-pppd/extra/pppd_compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pppd/extra') diff --git a/accel-pppd/extra/pppd_compat.c b/accel-pppd/extra/pppd_compat.c index 2db2440..915ef71 100644 --- a/accel-pppd/extra/pppd_compat.c +++ b/accel-pppd/extra/pppd_compat.c @@ -238,7 +238,7 @@ static void ev_ses_pre_up(struct ap_session *ses) argv[4] = ipaddr; argv[5] = peer_ipaddr; - fill_argv(argv, pd, conf_ip_up); + fill_argv(argv, pd, conf_ip_pre_up); fill_env(env, env_mem, pd); -- cgit v1.2.3