Second attempt - Ensure the private port number wrap check is inside the critical section in prvGetPrivatePortNumber() (UDP).

pull/4/head
Richard Barry
parent 818abc468d
commit e46fe7c049

@ -943,11 +943,11 @@ uint16_t usReturn;
create first so the early port numbers may still be in use. */ create first so the early port numbers may still be in use. */
usNextPortToUse = socketAUTO_PORT_ALLOCATION_RESET_NUMBER; usNextPortToUse = socketAUTO_PORT_ALLOCATION_RESET_NUMBER;
} }
usReturn = FreeRTOS_htons( usNextPortToUse );
} }
taskEXIT_CRITICAL(); taskEXIT_CRITICAL();
usReturn = FreeRTOS_htons( usNextPortToUse );
return usReturn; return usReturn;
} /* Tested */ } /* Tested */
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/

Loading…
Cancel
Save