From: Roy Marples Date: Sat, 7 Dec 2019 17:06:18 +0000 (+0000) Subject: DHCP: dl is always >0 at this point, so remove check. X-Git-Tag: v8.1.3~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf285d0d2124abbdf16cbd26add32b43be909491;p=thirdparty%2Fdhcpcd.git DHCP: dl is always >0 at this point, so remove check. Found by the LGTM bot. --- diff --git a/src/dhcp.c b/src/dhcp.c index 797b3ad4..ccd39b99 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -489,7 +489,7 @@ print_rfc3361(FILE *fp, const uint8_t *data, size_t dl) return -1; break; case 1: - if (dl == 0 || dl % 4 != 0) { + if (dl % 4 != 0) { errno = EINVAL; break; }