diff options
-rw-r--r-- | lib/doh.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |