mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-12-19 18:55:39 +08:00
Second attempt - Ensure the private port number wrap check is inside the critical section in prvGetPrivatePortNumber() (UDP).
This commit is contained in:
@@ -943,11 +943,11 @@ uint16_t usReturn;
|
||||
create first so the early port numbers may still be in use. */
|
||||
usNextPortToUse = socketAUTO_PORT_ALLOCATION_RESET_NUMBER;
|
||||
}
|
||||
|
||||
usReturn = FreeRTOS_htons( usNextPortToUse );
|
||||
}
|
||||
taskEXIT_CRITICAL();
|
||||
|
||||
usReturn = FreeRTOS_htons( usNextPortToUse );
|
||||
|
||||
return usReturn;
|
||||
} /* Tested */
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user