From: op Date: Mon, 25 Mar 2024 19:11:52 +0000 (+0000) Subject: remove possibly bogus length check X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cee5670f419dc0d7d700b65d594088c95ad024ef;p=openbsd remove possibly bogus length check len is initially the line length, but then the two go out of sync. ok millert@ --- diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index ef0d37c3b03..8a1b75d6beb 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -1,4 +1,4 @@ -/* $OpenBSD: whois.c,v 1.63 2024/03/25 15:52:39 millert Exp $ */ +/* $OpenBSD: whois.c,v 1.64 2024/03/25 19:11:52 op Exp $ */ /* * Copyright (c) 1980, 1993 @@ -264,7 +264,6 @@ whois(const char *query, const char *server, const char *port, int flags) /* Verisign etc. */ if (!(flags & WHOIS_SPAM_ME) && - len >= sizeof(CHOPSPAM)-1 && (strncasecmp(buf, CHOPSPAM, sizeof(CHOPSPAM)-1) == 0 || strncasecmp(buf, &CHOPSPAM[4], sizeof(CHOPSPAM)-5) == 0)) { printf("\n");