diff --git a/src/common/util.c b/src/common/util.c index d62be23e61..f725c7c902 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -693,7 +693,7 @@ int read_all(int fd, char *buf, size_t count, int isSocket) { break; numread += result; } - return count; + return numread; } /*