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
This commit is contained in:
parent
9ccfbb841c
commit
16d291e2c9
1 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue