Skip to content

Commit

Permalink
Repaired FreeRTOS_AddEndPoint() as well
Browse files Browse the repository at this point in the history
  • Loading branch information
htibosch committed Sep 6, 2023
1 parent 1803d90 commit 91badc9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/FreeRTOS_Routing.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,6 @@ struct xIPv6_Couple
{
NetworkEndPoint_t * pxIterator = NULL;

/* This end point will go to the end of the list, so there is no pxNext
* yet. */
pxEndPoint->pxNext = NULL;

/* Double link between the NetworkInterface_t that is using the addressing
* defined by this NetworkEndPoint_t structure. */
pxEndPoint->pxNetworkInterface = pxInterface;
Expand Down Expand Up @@ -278,6 +274,7 @@ struct xIPv6_Couple

if( pxIterator->pxNext == NULL )
{
pxEndPoint->pxNext = NULL;
pxIterator->pxNext = pxEndPoint;
break;
}
Expand Down

0 comments on commit 91badc9

Please sign in to comment.