FreeRTOS-Kernel/FreeRTOS-Plus/Demo/Common/Demo_IP_Protocols
Yuhui.Zheng 1deeb6dd84 Check socket binding result before doing anything with socket. (This is to address ARG findings.) Breaking the single return rule here, due to precedent violation at line 1039 and 1144.
prvTransferConnect() now returns:
- pdTRUE: everything's good. pdTRUE = 1.
- -pdFREERTOS_ERRNO_ENOMEM: FreeRTOS_socket() failed. -pdFREERTOS_ERRNO_ENOMEM = -12.
- -pdFREERTOS_ERRNO_EINVAL || -pdFREERTOS_ERRNO_ECANCELED: FreeRTOS_bind() failed. Negative values.

Thus, at line 569 and line 617, needs to check != pdTRUE instead of == pdFALSE.

This commit is done on behalf of Alfred.
2019-12-04 07:52:49 +00:00
..
Common Remove the simple UDP client/server tasks from the MQTT demo as the demo's network connection can be tested more easily just by pinging it. 2019-07-23 19:23:12 +00:00
FTP Check socket binding result before doing anything with socket. (This is to address ARG findings.) Breaking the single return rule here, due to precedent violation at line 1039 and 1144. 2019-12-04 07:52:49 +00:00
HTTP Fix some build issues in older kernel demo projects. 2018-08-22 21:29:21 +00:00
include Fix some build issues in older kernel demo projects. 2018-08-22 21:29:21 +00:00
NTP Minor bug fix in NTPDemo.c -> use of FREERTOS_INVALID_SOCKET in place of NULL. 2019-09-04 00:13:17 +00:00