proto detect - fix coverity CID 1204325

CID 1204325 (#1 of 1): Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this statement: mask = 0U;.
433        mask = 0;

additionally, mask is initialized to 0
pull/2489/head
Jason Ish 9 years ago committed by Victor Julien
parent d09cd16c8c
commit 87b5bf9541

@ -437,8 +437,6 @@ static AppProto AppLayerProtoDetectPPGetProto(Flow *f,
mask = pp_port_dp->alproto_mask;
else if (pp_port_sp)
mask = pp_port_sp->alproto_mask;
else
mask = 0;
if (alproto_masks[0] == mask) {
FLOW_SET_PP_DONE(f, direction);

Loading…
Cancel
Save