aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-04-03 19:06:56 +0000
committerJohn Crispin <john@openwrt.org>2015-04-03 19:06:56 +0000
commit16d291e2c9ef687bd1d2f58d347d3ee0dc7fcbe1 (patch)
tree4a70472c24acab6165683f15a469d0d573fee960 /package/network
parent9ccfbb841c01b1d15270374a3ce07641267b730d (diff)
downloadupstream-16d291e2c9ef687bd1d2f58d347d3ee0dc7fcbe1.tar.gz
upstream-16d291e2c9ef687bd1d2f58d347d3ee0dc7fcbe1.tar.bz2
upstream-16d291e2c9ef687bd1d2f58d347d3ee0dc7fcbe1.zip
ppp: Fix missing arg argument when using option flag OPT_A2STRVAL
The arg argument is missing to the printer call in the print_option utility when the option flag OPT_A2STRVAL is set. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> SVN-Revision: 45264
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/ppp/patches/550-fix-printer-args.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/network/services/ppp/patches/550-fix-printer-args.patch b/package/network/services/ppp/patches/550-fix-printer-args.patch
new file mode 100644
index 0000000000..0eed9428a6
--- /dev/null
+++ b/package/network/services/ppp/patches/550-fix-printer-args.patch
@@ -0,0 +1,11 @@
+--- a/pppd/options.c
++++ b/pppd/options.c
+@@ -1013,7 +1013,7 @@ print_option(opt, mainopt, printer, arg)
+ p = (char *) opt->addr2;
+ if ((opt->flags & OPT_STATIC) == 0)
+ p = *(char **)p;
+- printer("%q", p);
++ printer(arg, "%q", p);
+ } else if (opt->flags & OPT_A2LIST) {
+ struct option_value *ovp;
+