mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-26 21:36:43 +08:00
Fix coverity scan 1592958, wrong sizeof argument
This commit is contained in:
@@ -110,7 +110,7 @@ int persist__chunk_client_msg_read_v56(FILE *db_fptr, struct P_client_msg *chunk
|
||||
struct mosquitto__packet_in prop_packet;
|
||||
int rc;
|
||||
|
||||
memset(&prop_packet, 0, sizeof(struct mosquitto__packet));
|
||||
memset(&prop_packet, 0, sizeof(struct mosquitto__packet_in));
|
||||
|
||||
read_e(db_fptr, &chunk->F, sizeof(struct PF_client_msg));
|
||||
chunk->F.mid = ntohs(chunk->F.mid);
|
||||
|
||||
Reference in New Issue
Block a user