Skip to content

Commit

Permalink
Move the comment to the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
ActoryOu committed Oct 23, 2024
1 parent 7ba244b commit 93147e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/FreeRTOS_DHCPv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -1492,7 +1492,6 @@ static BaseType_t prvDHCPv6Analyse( struct xNetworkEndPoint * pxEndPoint,
xSet.uxOptionLength = ( size_t ) usBitConfig_read_16( &xMessage );
xSet.uxStart = xMessage.uxIndex;

/* ulOptionsReceived has only 32-bits, it's not allowed to shift more than 32-bits on it. */
if( xMessage.xHasError != pdFALSE )
{
FreeRTOS_printf( ( "prvDHCPv6Analyse: bad input\n" ) );
Expand All @@ -1501,6 +1500,7 @@ static BaseType_t prvDHCPv6Analyse( struct xNetworkEndPoint * pxEndPoint,
}
else
{
/* ulOptionsReceived has only 32-bits, it's not allowed to shift more than 32-bits on it. */
if( usOption < 32 )
{
/* Store the option by bit-map only if it's less than 32. */
Expand Down

0 comments on commit 93147e3

Please sign in to comment.