summaryrefslogtreecommitdiff
path: root/accel-pppd/extra
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2018-06-21 09:52:53 +0200
committerDmitry Kozlov <xeb@mail.ru>2018-06-24 20:19:05 +0300
commit308a6d0c3ba6f22d00b7a360a8621db5e5f9647a (patch)
tree25efaafe4f8d6392a5729c4ceb4f0fbb4d4a9d42 /accel-pppd/extra
parent737024756483079572815a96e8243077ef9a08b5 (diff)
downloadaccel-ppp-xebd-308a6d0c3ba6f22d00b7a360a8621db5e5f9647a.tar.gz
accel-ppp-xebd-308a6d0c3ba6f22d00b7a360a8621db5e5f9647a.zip
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 <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/extra')
-rw-r--r--accel-pppd/extra/pppd_compat.c2
1 files changed, 1 insertions, 1 deletions
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);