diff --git a/sbin/hastd/proto_tcp4.c b/sbin/hastd/proto_tcp4.c index 8415872d8019..bfbae8c1c1e0 100644 --- a/sbin/hastd/proto_tcp4.c +++ b/sbin/hastd/proto_tcp4.c @@ -156,8 +156,7 @@ tcp4_addr(const char *addr, struct sockaddr_in *sinp) size = (size_t)(pp - addr + 1); if (size > sizeof(iporhost)) return (ENAMETOOLONG); - if (strlcpy(iporhost, addr, size) >= size) - return (ENAMETOOLONG); + (void)strlcpy(iporhost, addr, size); } /* Convert string (IP address or host name) to in_addr_t. */ ip = str2ip(iporhost);