Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cbaae3bf authored by Marco Nelissen's avatar Marco Nelissen Committed by Android Git Automerger
Browse files

am 90dc22fa: am a02d9bf9: Make sure we don\'t read from invalid fds

* commit '90dc22fa09c4cddb94926b8a8f08fd3d0a404f7f':
  Make sure we don't read from invalid fds
parents 1c962398 30215039
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -139,6 +139,9 @@ static ssize_t MySendReceive(
        int s, void *data, size_t size, int flags, bool sendData) {
    ssize_t result = 0;

    if (s < 0) {
        return -1;
    }
    while (size > 0) {
        fd_set rs, ws, es;
        FD_ZERO(&rs);