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:
parent
7bbdb74981
commit
74e19d451c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user