summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <Jafaral@users.noreply.github.com>2019-09-10 13:21:29 -0500
committerGitHub <noreply@github.com>2019-09-10 13:21:29 -0500
commitba439635c68ba3fdaa773e4debc1bf65414f638d (patch)
tree16b6869e24911c5fa6af0ce10bdeab106cd62dec
parentccc13acc0ff1f7ba1757071d516c74785de787c7 (diff)
parentf0ce8ac3e19d0c4e42323dde8d5db0d069ec99e2 (diff)
Merge pull request #4958 from donaldsharp/pim_assert_a_saurus
pimd: Slightly loosen pim assert message length tests
-rw-r--r--pimd/pim_assert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_assert.c b/pimd/pim_assert.c
index 3aa2a92241..53ab22754c 100644
--- a/pimd/pim_assert.c
+++ b/pimd/pim_assert.c
@@ -259,11 +259,11 @@ int pim_assert_recv(struct interface *ifp, struct pim_neighbor *neigh,
curr += offset;
curr_size -= offset;
- if (curr_size != 8) {
+ if (curr_size < 8) {
char src_str[INET_ADDRSTRLEN];
pim_inet4_dump("<src?>", src_addr, src_str, sizeof(src_str));
zlog_warn(
- "%s: preference/metric size is not 8: size=%d from %s on interface %s",
+ "%s: preference/metric size is less than 8 bytes: size=%d from %s on interface %s",
__PRETTY_FUNCTION__, curr_size, src_str, ifp->name);
return -3;
}