]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2020-10745: ndr/dns_utils: correct a comment
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 24 Apr 2020 23:03:30 +0000 (11:03 +1200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 25 Jun 2020 11:04:45 +0000 (13:04 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14378

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
librpc/ndr/ndr_dns_utils.c

index 2d9b5f1bc1eb84cd2610bdf2020bab10c8c7fb14..2ce300863bca1b97802c045db7375e54f47d9654 100644 (file)
@@ -49,7 +49,7 @@ enum ndr_err_code ndr_push_dns_string_list(struct ndr_push *ndr,
 
                complen = strcspn(s, ".");
 
-               /* we need to make sure the length fits into 6 bytes */
+               /* the length must fit into 6 bits (i.e. <= 63) */
                if (complen > 0x3F) {
                        return ndr_push_error(ndr, NDR_ERR_STRING,
                                              "component length %u[%08X] > " \