Attention is currently required from: fixeria, pespin.
Patch set 1:Code-Review +1
2 comments:
File src/bankd/bankd_main.c:
Patch Set #1, Line 659: } else if (rc < 0)
Nitpicking again. This `else` was in the original code (see left side of the diff). […]
It is not obvious to me that this `else` would be unnecessary. `recv` could return `-1` and set a different `errno` than `EINTR`, in which case we should abort here and not add rc (`-1`) to `received` and try to receive more data.
Patch Set #1, Line 661: else if (rc == 0)
This `else` was in the original code (see left side of the diff). […]
Looks to me like we need this `else` to handle clients potentially sending malformed data, either with header or payload being too short. Otherwise we don't exit this loop?
To view, visit change 44182. To unsubscribe, or for help writing mail filters, visit settings.