Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4a07b0b

Browse files
committed
handle error code properly
1 parent 4d4f604 commit 4a07b0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/raftable/worker.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ static bool accept_client(void)
241241
static bool pull_from_socket(Client *c)
242242
{
243243
void *dst;
244-
size_t avail, recved;
244+
size_t avail;
245+
ssize_t recved;
246+
245247
if (!c->good) return false;
246248
Assert(c->sock >= 0);
247249
Assert(c->bufrecved <= BUFLEN);

0 commit comments

Comments
 (0)