From 880a81be7c8e0fe8567227bc17a1bff3ea035943 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Sat, 12 Jul 2014 10:41:20 +1000 Subject: [PATCH] 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 --- pppd/plugins/radius/radrealms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } }; -- 2.39.2