mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 00:29:58 -05:00
Make unbound-control error returned on missing domain name more user friendly.
This commit is contained in:
parent
e4eb76a5f3
commit
51593d47ac
2 changed files with 8 additions and 0 deletions
|
|
@ -1124,6 +1124,10 @@ parse_arg_name(RES* ssl, char* str, uint8_t** res, size_t* len, int* labs)
|
||||||
*res = NULL;
|
*res = NULL;
|
||||||
*len = 0;
|
*len = 0;
|
||||||
*labs = 0;
|
*labs = 0;
|
||||||
|
if(str[0] == '\0') {
|
||||||
|
ssl_printf(ssl, "error: this option requires a domain name\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
status = sldns_str2wire_dname_buf(str, nm, &nmlen);
|
status = sldns_str2wire_dname_buf(str, nm, &nmlen);
|
||||||
if(status != 0) {
|
if(status != 0) {
|
||||||
ssl_printf(ssl, "error cannot parse name %s at %d: %s\n", str,
|
ssl_printf(ssl, "error cannot parse name %s at %d: %s\n", str,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
27 March 2020: Ralph
|
||||||
|
- Make unbound-control error returned on missing domain name more user
|
||||||
|
friendly.
|
||||||
|
|
||||||
26 March 2020: Ralph
|
26 March 2020: Ralph
|
||||||
- Fix RPZ concurrency issue when using auth_zone_reload.
|
- Fix RPZ concurrency issue when using auth_zone_reload.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue