add assert

This commit is contained in:
Eric House 2023-04-07 15:26:25 -07:00
parent 7b1eaf438e
commit f8c5a4ea58

View file

@ -382,6 +382,7 @@ dvc_makeMQTTMessages( XW_DUtilCtxt* dutil, XWEnv xwe,
for ( SendMsgsPacket* packet = (SendMsgsPacket*)msgs;
!!packet; packet = (SendMsgsPacket* const)packet->next ) {
XP_U32 len = packet->len;
XP_ASSERT( 0 < len ); /* will confuse server */
stream_putU32VL( stream, len );
stream_putBytes( stream, packet->buf, len );
nSent1 += len;