summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/doh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/doh.c b/lib/doh.c
index 6d1f3303b..80cd9ac26 100644
--- a/lib/doh.c
+++ b/lib/doh.c
@@ -84,7 +84,7 @@ UNITTEST DOHcode doh_encode(const char *host,
unsigned char *orig = dnsp;
const char *hostp = host;
- if(len < (12 + hostlen + 4))
+ if(len <= (12 + hostlen + 4))
return DOH_TOO_SMALL_BUFFER;
*dnsp++ = 0; /* 16 bit id */