commit | 56afb1065ac5d0756935e00e359697c11003d31b | [log] [tgz] |
---|---|---|
author | Michael Scott <michael.scott@linaro.org> | Tue Jan 31 00:43:15 2017 -0800 |
committer | Jukka Rissanen <jukka.rissanen@linux.intel.com> | Fri Feb 03 15:59:17 2017 +0200 |
tree | d3460f48e9ea16b2b2ef9f6d95c75d606472a7a0 | |
parent | 1a21a36b7e692fa7dc5ac63ad699d0706a268a15 [diff] |
net: tcp: Only return -ETIMEDOUT if timeout!=0 in connect Previous commit: 6e6281af96b93e8a5519c61e4e14e03f9492f3a4 "net: tcp: Only return -ETIMEDOUT if timeout>0 in connect" missed that K_FOREVER needs a semaphore taken, but has a value of -1. Change the logic here to timeout!=0 to handle this case. Change-Id: Iae6a784443810130a7de267226483426fbd4f0d4 Signed-off-by: Michael Scott <michael.scott@linaro.org>