From 1b77c52015bfbd1792794b1750e7aa1315cba78b Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 29 Nov 2013 18:23:39 +0000 Subject: [PATCH] Fix comment about termination correctness. --- dhcp-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dhcp-common.c b/dhcp-common.c index 4363ce3e..71b367bb 100644 --- a/dhcp-common.c +++ b/dhcp-common.c @@ -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) -- 2.47.3