mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-09 08:16:58 +08:00
Merge branch 'bugfix/iroute' into 'master'
Fix iroute option processing Closes #625 See merge request openconnect/ocserv!472
This commit is contained in:
1
NEWS
1
NEWS
@@ -4,6 +4,7 @@
|
||||
- Enhanced the seccomp filters to address issue in testing (#627)
|
||||
- Fixed "unexpected URL" errors for Cisco AnyConnect clients
|
||||
- Fixed the 'ping-leases' option, which was broken since version 1.1.1
|
||||
- Fixed 'iroute' option processing to handle multiple routes (#625)
|
||||
|
||||
* Version 1.3.0 (released 2024-05-05)
|
||||
- Switch to https://github.com/nodejs/llhttp from http-parser.
|
||||
|
||||
@@ -561,15 +561,15 @@ static int iroutes_handler(void *_ctx, const char *section, const char *name,
|
||||
if (section != NULL && section[0] != 0) {
|
||||
fprintf(stderr, WARNSTR "skipping unknown section '%s'\n",
|
||||
section);
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (strcmp(name, "iroute") != 0)
|
||||
return 0;
|
||||
return 1;
|
||||
|
||||
value = sanitize_config_value(ctx->config, _value);
|
||||
if (value == NULL)
|
||||
return 0;
|
||||
return 1;
|
||||
|
||||
ret = _add_multi_line_val(ctx->config, &ctx->config->known_iroutes,
|
||||
&ctx->config->known_iroutes_size, value);
|
||||
@@ -579,7 +579,7 @@ static int iroutes_handler(void *_ctx, const char *section, const char *name,
|
||||
}
|
||||
|
||||
talloc_free(value);
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void append_iroutes_from_file(struct cfg_st *config, const char *file)
|
||||
|
||||
Reference in New Issue
Block a user