commit 7709a7518948140b292d6d52ddbd981a5af54df9 from: Omar Polo date: Mon Feb 13 09:27:15 2023 UTC missing zero initialization commit - d30182290dbc8e6972ead312fee101e3708b8df6 commit + 7709a7518948140b292d6d52ddbd981a5af54df9 blob - 6f19228c1f6aa043ae19b8feadf8e569d5b04fce blob + 81b44473891f425d70719b1716bc43e46b22acd1 --- libexec/got-fetch-pack/got-fetch-pack.c +++ libexec/got-fetch-pack/got-fetch-pack.c @@ -578,6 +578,8 @@ fetch_pack(int fd, int packfd, uint8_t *pack_sha1, "unexpected message from server"); goto done; } + + memset(&common_id, 0, sizeof(common_id)); if (!got_parse_sha1_digest(common_id.hash, buf + 4)) { err = got_error_msg(GOT_ERR_BAD_PACKET, "bad object ID in ACK packet from server");