Add missing return on error

Note: This code cannot presently be called
This commit is contained in:
jfreegman 2022-04-08 19:23:12 -04:00
parent 078baf08bb
commit 7e38ead415
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1 @@
2cf1f9b0e7e294b3fb767970c4cf310abbb3a690424f3483bf359ad5714d6ec7 /usr/local/bin/tox-bootstrapd
8a21d15ab133d9cb6dea68a536ed1f3d9e7a5ae81c8ea55e315d3a111c857476 /usr/local/bin/tox-bootstrapd

View File

@ -248,6 +248,7 @@ int gca_unpack_public_announce(const Logger *log, const uint8_t *data, uint16_t
{
if (length < CHAT_ID_SIZE) {
LOGGER_ERROR(log, "invalid public announce length: %u", length);
return -1;
}
if (data == nullptr) {