output: shared net can be in suppressed state

Avoid calling abort() when this very unlikely situation happens.

Reference: 48962004b8
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2017-11-13 09:51:40 +00:00
parent 242c58f45e
commit b2c764924b
No known key found for this signature in database
GPG key ID: A9553245FDE9B739

View file

@ -1022,6 +1022,8 @@ static int output_alarming(struct conf_t *state)
for (shared_p = state->shared_net_root->next; shared_p; shared_p = shared_p->next) {
shnet_output_helper(state, &oh, shared_p);
switch (oh.status) {
case STATUS_SUPPRESSED:
break;
case STATUS_IGNORED:
si++;
break;