mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
radius: fixed config string parsing
This commit is contained in:
+3
-3
@@ -203,13 +203,13 @@ static char *radius_get_brackets_string(struct cfg_st *config, const char *str)
|
|||||||
{
|
{
|
||||||
char *ret, *p;
|
char *ret, *p;
|
||||||
|
|
||||||
ret = get_brackets_string1(config, str+6);
|
ret = get_brackets_string1(config, str);
|
||||||
if (ret == NULL) {
|
if (ret == NULL) {
|
||||||
fprintf(stderr, "No radius configuration specified\n");
|
fprintf(stderr, "No radius configuration specified: %s\n", str);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
p = get_brackets_string2(config, str+6);
|
p = get_brackets_string2(config, str);
|
||||||
if (p != NULL) {
|
if (p != NULL) {
|
||||||
if (strcasecmp(p, "groupconfig") != 0) {
|
if (strcasecmp(p, "groupconfig") != 0) {
|
||||||
fprintf(stderr, "No known configuration option: %s\n", p);
|
fprintf(stderr, "No known configuration option: %s\n", p);
|
||||||
|
|||||||
Reference in New Issue
Block a user