mirror of
https://github.com/curl/curl.git
synced 2026-07-23 01:37:15 +03:00
doh: add error message for DOH_DNS_NAME_TOO_LONG
When this error code was introduced in b6a53fff6c, it was
forgotten to be added in the errors array and doh_strerror function.
Closes #5863
This commit is contained in:
parent
7691f68ba3
commit
a6a17662f2
1 changed files with 3 additions and 2 deletions
|
|
@ -57,12 +57,13 @@ static const char * const errors[]={
|
|||
"Unexpected TYPE",
|
||||
"Unexpected CLASS",
|
||||
"No content",
|
||||
"Bad ID"
|
||||
"Bad ID",
|
||||
"Name too long"
|
||||
};
|
||||
|
||||
static const char *doh_strerror(DOHcode code)
|
||||
{
|
||||
if((code >= DOH_OK) && (code <= DOH_DNS_BAD_ID))
|
||||
if((code >= DOH_OK) && (code <= DOH_DNS_NAME_TOO_LONG))
|
||||
return errors[code];
|
||||
return "bad error code";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue