diff --git a/src/cluster_legacy.c b/src/cluster_legacy.c index d67edc4e5f..b44d96806b 100644 --- a/src/cluster_legacy.c +++ b/src/cluster_legacy.c @@ -3195,7 +3195,7 @@ int clusterIsValidPacket(clusterLink *link) { if (hdr->mflags[0] & CLUSTERMSG_FLAG0_EXT_DATA) { clusterMsgPingExt *ext = getInitialPingExt(hdr, count); while (extensions--) { - uint16_t extlen = getPingExtLength(ext); + uint32_t extlen = getPingExtLength(ext); if (extlen % 8 != 0) { serverLog(LL_WARNING, "Received a %s packet without proper padding (%d bytes)", clusterGetMessageTypeString(type), (int)extlen);