1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

emcute: never return from receive loop

Without this change an attacker would be able to stop the emcute server
by sending a crafted packet triggering this branch. The solution is
using `continue` instead of `return`.
This commit is contained in:
Sören Tempel 2019-10-07 15:05:38 +02:00
parent 7bbdb74981
commit 74e19d451c

View File

@ -515,7 +515,7 @@ void emcute_run(uint16_t port, const char *id)
if ((len < 0) && (len != -ETIMEDOUT)) {
LOG_ERROR("[emcute] error while receiving UDP packet\n");
return;
continue;
}
if (len >= 2) {