From 7e38ead415a934b52869cecafb82b09d8546e23d Mon Sep 17 00:00:00 2001 From: jfreegman Date: Fri, 8 Apr 2022 19:23:12 -0400 Subject: [PATCH] Add missing return on error Note: This code cannot presently be called --- other/bootstrap_daemon/docker/tox-bootstrapd.sha256 | 2 +- toxcore/group_announce.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/other/bootstrap_daemon/docker/tox-bootstrapd.sha256 b/other/bootstrap_daemon/docker/tox-bootstrapd.sha256 index 2e97257b..ff7d80ab 100644 --- a/other/bootstrap_daemon/docker/tox-bootstrapd.sha256 +++ b/other/bootstrap_daemon/docker/tox-bootstrapd.sha256 @@ -1 +1 @@ -2cf1f9b0e7e294b3fb767970c4cf310abbb3a690424f3483bf359ad5714d6ec7 /usr/local/bin/tox-bootstrapd +8a21d15ab133d9cb6dea68a536ed1f3d9e7a5ae81c8ea55e315d3a111c857476 /usr/local/bin/tox-bootstrapd diff --git a/toxcore/group_announce.c b/toxcore/group_announce.c index 7806f5c3..83dd3acf 100644 --- a/toxcore/group_announce.c +++ b/toxcore/group_announce.c @@ -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) {