Skip to content

Commit

Permalink
Avoid some Code Analyzer warnings: C28121, C6101
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Jan 5, 2017
1 parent 38dad53 commit b922867
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packetWin7/npf/npf/Loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ UINT32 g_InboundIPPacketV6 = 0;
HANDLE g_InjectionHandle_IPv4 = INVALID_HANDLE_VALUE;
HANDLE g_InjectionHandle_IPv6 = INVALID_HANDLE_VALUE;


_Success_(return)
BOOLEAN
NPF_IsPacketSelfSent(
_In_ PNET_BUFFER_LIST pNetBufferList,
Expand Down Expand Up @@ -412,6 +412,7 @@ NPF_NetworkClassify(
{
TRACE_MESSAGE1(PACKET_DEBUG_LOUD,
"NPF_NetworkClassify: bIPv4 cannot be determined, inFixedValues->layerId = %d\n", inFixedValues->layerId);
bIPv4 = FALSE;
}

if (inFixedValues->layerId == FWPS_LAYER_OUTBOUND_IPPACKET_V4 || inFixedValues->layerId == FWPS_LAYER_OUTBOUND_IPPACKET_V6)
Expand All @@ -426,6 +427,7 @@ NPF_NetworkClassify(
{
TRACE_MESSAGE1(PACKET_DEBUG_LOUD,
"NPF_NetworkClassify: bInbound cannot be determined, inFixedValues->layerId = %d\n", inFixedValues->layerId);
bInbound = FALSE;
}

if (inMetaValues->currentMetadataValues & FWPS_METADATA_FIELD_IP_HEADER_SIZE)
Expand Down

0 comments on commit b922867

Please sign in to comment.