mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Second attempt - Ensure the private port number wrap check is inside the critical section in prvGetPrivatePortNumber() (UDP).
This commit is contained in:
parent
818abc468d
commit
e46fe7c049
|
@ -943,10 +943,10 @@ uint16_t usReturn;
|
|||
create first so the early port numbers may still be in use. */
|
||||
usNextPortToUse = socketAUTO_PORT_ALLOCATION_RESET_NUMBER;
|
||||
}
|
||||
}
|
||||
taskEXIT_CRITICAL();
|
||||
|
||||
usReturn = FreeRTOS_htons( usNextPortToUse );
|
||||
}
|
||||
taskEXIT_CRITICAL();
|
||||
|
||||
return usReturn;
|
||||
} /* Tested */
|
||||
|
|
Loading…
Reference in a new issue