]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix comment about termination correctness.
authorRoy Marples <roy@marples.name>
Fri, 29 Nov 2013 18:23:39 +0000 (18:23 +0000)
committerRoy Marples <roy@marples.name>
Fri, 29 Nov 2013 18:23:39 +0000 (18:23 +0000)
dhcp-common.c

index 4363ce3ea88affdfcae31d899f7070ff1465002e..71b367bb7460758142b2e020a9eedbbbc9226c1f 100644 (file)
@@ -168,8 +168,8 @@ decode_rfc3397(char *out, ssize_t len, int pl, const uint8_t *p)
        while (q - p < pl) {
                r = NULL;
                hops = 0;
-               /* We check we are inside our length again incase
-                * the data is NOT terminated correctly. */
+               /* Check we are inside our length again in-case
+                * the name isn't fully qualified (ie, not terminated) */
                while (q - p < pl && (l = *q++)) {
                        ltype = l & 0xc0;
                        if (ltype == 0x80 || ltype == 0x40)