commit | 0edb52517400f3b4cc483ea7a6ff11af0994d421 | [log] [tgz] |
---|---|---|
author | Joe Hershberger <joe.hershberger@ni.com> | Mon Jul 02 14:47:44 2018 -0500 |
committer | Joe Hershberger <joe.hershberger@ni.com> | Thu Jul 26 14:08:17 2018 -0500 |
tree | d70132b7f3f5f1ceff96ba72be6f3eab583b7046 | |
parent | b3eff9b5e19e6d78aeac0ef8679528954854e616 [diff] |
sandbox: eth-raw: Correct valid socket test in send/recv In open, the socket is correctly checked to be -1 in the error case. In send and recv, we checked for 0, but that is a valid socket number. Correct this by checking for -1 as a bad socket everywhere. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Simon Glass <sjg@chromium.org>