Skip to content

Commit

Permalink
fix Invalid condition [ICMPv4PacketImpl.cpp:234] #2783
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f committed Feb 25, 2020
1 parent 0c5a059 commit 0daa88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Net/src/ICMPv4PacketImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ std::string ICMPv4PacketImpl::errorDescription(unsigned char* buffer, int length
break;

case TIME_EXCEEDED_TYPE:
if (code >= TIME_TO_LIVE || code < TIME_EXCEEDED_UNKNOWN)
if (code >= TIME_TO_LIVE && code < TIME_EXCEEDED_UNKNOWN)
err << TIME_EXCEEDED_CODE[code];
else
err << TIME_EXCEEDED_CODE[TIME_EXCEEDED_UNKNOWN];
Expand Down

0 comments on commit 0daa88f

Please sign in to comment.