diff options
Diffstat (limited to 'src/sync-mode.c')
-rw-r--r-- | src/sync-mode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sync-mode.c b/src/sync-mode.c index b2b78ad..6aad8f7 100644 --- a/src/sync-mode.c +++ b/src/sync-mode.c @@ -59,6 +59,11 @@ static void do_mcast_handler_step(struct nethdr *net, size_t remain) break; } + if (net->type > NET_T_STATE_MAX) { + STATE(malformed)++; + dlog(LOG_ERR, "bad state message type"); + return; + } memset(ct, 0, sizeof(__ct)); if (parse_payload(ct, net, remain) == -1) { |