Parent: aa54087f13d54320f57473b5a8e6d979314266bc
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-06-03 22:04:11
Tree: 47a5d81114b255c493dea7b804f1ab01af4b1dd1
l2test: Add missing error checking send() might fail and return a negative len, catch that to avoid advancing the send buffer in the wrong direction and causing all sorts of problems. 977|-> len = send(sk, buf + sent, buflen, 0); 978| 979| sent += len;
Diffstat
| M | tools/l2test.c | | | 5 | +++++ |
1 files changed, 5 insertions(+), 0 deletions(-)