Add NULL check in send_tcp function
authorjunmin kim <junmindd.kim@samsung.com>
Wed, 27 Sep 2017 10:53:03 +0000 (03:53 -0700)
committerjunmin kim <junmindd.kim@samsung.com>
Wed, 27 Sep 2017 10:53:03 +0000 (03:53 -0700)
commit8e1c0fc187129898df8bf2632659009cf2dbf84f
tree6738e0bfb632fe5a24f03197175242e93243a5f9
parent118de076fa9f0d47937aba6e21707b764aee2a8a
Add NULL check in send_tcp function

Pointer 'conn' which was dereferenced at api_msg.c:330 is compared to NULL value at api_msg.c:336.
If conn is NULL, ERR_ARG will be returned.
os/net/lwip/src/api/api_msg.c