diff options
author | Emil Engler <me@emilengler.com> | 2020-08-26 13:33:42 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-08-26 22:51:29 +0200 |
commit | a6a17662f22d1b00f89295086ea71ac73700f477 (patch) | |
tree | ad83bd779c707c16144d342a40ca3051caa62211 | |
parent | 7691f68ba3f1756e38400b1c6e1655f5dcd6e1fd (diff) | |
download | curl-a6a17662f22d1b00f89295086ea71ac73700f477.tar.gz |
doh: add error message for DOH_DNS_NAME_TOO_LONG
When this error code was introduced in b6a53fff6c1d07e8a9, it was
forgotten to be added in the errors array and doh_strerror function.
Closes #5863
-rw-r--r-- | lib/doh.c | 5 |
1 files changed, 3 insertions, 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"; } |