diff options
author | Paul Mackerras <paulus@samba.org> | 2014-07-12 10:41:20 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2014-08-01 21:36:26 +1000 |
commit | 880a81be7c8e0fe8567227bc17a1bff3ea035943 (patch) | |
tree | 1c24fd98be41cd11615751f77609ba6d247c3971 | |
parent | de8da14d845ee6db9236ccfddabf1d8ebf045ddb (diff) | |
download | ppp-880a81be7c8e0fe8567227bc17a1bff3ea035943.tar.gz |
radius: Fix realms-config-file option
Since radrealms_config is an array of char not a pointer to char, we
need OPT_STATIC in the configuration option that points to it.
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | pppd/plugins/radius/radrealms.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pppd/plugins/radius/radrealms.c b/pppd/plugins/radius/radrealms.c index 1d8da62..7a30370 100644 --- a/pppd/plugins/radius/radrealms.c +++ b/pppd/plugins/radius/radrealms.c @@ -28,7 +28,8 @@ char pppd_version[] = VERSION; char radrealms_config[MAXPATHLEN] = "/etc/radiusclient/realms"; static option_t Options[] = { - { "realms-config-file", o_string, &radrealms_config }, + { "realms-config-file", o_string, &radrealms_config, + "Configuration file for RADIUS realms", OPT_STATIC, NULL, MAXPATHLEN }, { NULL } }; |