aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/net/frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/frame.c b/lib/net/frame.c
index e037d1c..1f33b09 100644
--- a/lib/net/frame.c
+++ b/lib/net/frame.c
@@ -100,7 +100,7 @@ recv_frame(int client_fd, size_t len, const unsigned char *session_key, void *re
}
if (ret == 0) {
printf("Connection closed by peer\n");
- return -1;
+ return 0;
}
/* Decrypt the payload */