decode: fix integer warning

Newly introduced warning.
Regular cast as value is checked just before.

Ticket: #4516
pull/7455/head
Philippe Antoine 4 years ago committed by Victor Julien
parent 717e51b7cf
commit d5abaf0b38

@ -814,7 +814,7 @@ void PacketAlertGetMaxConfig(void)
SCLogWarning(SC_ERR_INVALID_VALUE,
"Invalid value for packet-alert-max, default value set instead");
} else {
packet_alert_max = max;
packet_alert_max = (uint16_t)max;
}
}
SCLogDebug("detect->packet_alert_max set to %d", packet_alert_max);

Loading…
Cancel
Save