mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
force_read: handle EOF from fd
This commit is contained in:
@@ -125,6 +125,9 @@ uint8_t * p = buf;
|
||||
if (ret == -1) {
|
||||
if (errno != EAGAIN && errno != EINTR)
|
||||
return ret;
|
||||
} else if (ret == 0 && left != 0) {
|
||||
errno = ENOENT;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ret > 0) {
|
||||
|
||||
Reference in New Issue
Block a user