Fix broken check in stream.max-synack-queued parsing (coverity 1038103)

pull/598/head
Victor Julien 11 years ago
parent bec59f426e
commit 209946b07c

@ -442,7 +442,7 @@ void StreamTcpInitConfig(char quiet)
}
if ((ConfGetInt("stream.max-synack-queued", &value)) == 1) {
if (value >= 0 || value <= 255) {
if (value >= 0 && value <= 255) {
stream_config.max_synack_queued = (uint8_t)value;
} else {
stream_config.max_synack_queued = (uint8_t)STREAMTCP_DEFAULT_MAX_SYNACK_QUEUED;

Loading…
Cancel
Save