mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 14:39:59 -04:00
Merge branch '2923-validate-doh-path-in-dig' into 'main'
Validate HTTP path passed to dig Closes #2923 See merge request isc-projects/bind9!5451
This commit is contained in:
commit
52f411b288
2 changed files with 10 additions and 0 deletions
2
CHANGES
2
CHANGES
|
|
@ -1,3 +1,5 @@
|
|||
5725. [bug] Validate HTTP path passed to dig. [GL #2923]
|
||||
|
||||
5724. [bug] Address potential dead lock when checking zone
|
||||
content consistency. [GL #2908]
|
||||
|
||||
|
|
|
|||
|
|
@ -1482,6 +1482,14 @@ plus_option(char *option, bool is_batchfile, bool *need_clone,
|
|||
lookup->https_path = isc_mem_strdup(
|
||||
mctx, ISC_NM_HTTP_DEFAULT_PATH);
|
||||
} else {
|
||||
if (!isc_nm_http_path_isvalid(value)) {
|
||||
fprintf(stderr,
|
||||
";; The given HTTP path \"%s\" "
|
||||
"is not "
|
||||
"a valid absolute path\n",
|
||||
value);
|
||||
goto invalid_option;
|
||||
}
|
||||
lookup->https_path = isc_mem_strdup(mctx,
|
||||
value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue