mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Add missing return on error
Note: This code cannot presently be called
This commit is contained in:
parent
078baf08bb
commit
7e38ead415
|
@ -1 +1 @@
|
||||||
2cf1f9b0e7e294b3fb767970c4cf310abbb3a690424f3483bf359ad5714d6ec7 /usr/local/bin/tox-bootstrapd
|
8a21d15ab133d9cb6dea68a536ed1f3d9e7a5ae81c8ea55e315d3a111c857476 /usr/local/bin/tox-bootstrapd
|
||||||
|
|
|
@ -248,6 +248,7 @@ int gca_unpack_public_announce(const Logger *log, const uint8_t *data, uint16_t
|
||||||
{
|
{
|
||||||
if (length < CHAT_ID_SIZE) {
|
if (length < CHAT_ID_SIZE) {
|
||||||
LOGGER_ERROR(log, "invalid public announce length: %u", length);
|
LOGGER_ERROR(log, "invalid public announce length: %u", length);
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data == nullptr) {
|
if (data == nullptr) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user