Skip to content

Commit

Permalink
proto detect - fix coverity CID 1204325
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jasonish authored and victorjulien committed Jan 17, 2017
1 parent d09cd16 commit 87b5bf9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/app-layer-detect-proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 87b5bf9

Please sign in to comment.