Diff between 4cb40f81111c2b17e89146a9168d25df91c822d4 and 7f28cd5881c4abba03fc2f17dfe2f87980f77c59

Changed Files

File Additions Deletions Status
mgmt/main.c +1 -1 modified

Full Patch

diff --git a/mgmt/main.c b/mgmt/main.c
index c970f62..0534761 100644
--- a/mgmt/main.c
+++ b/mgmt/main.c
@@ -505,7 +505,7 @@ static int mgmt_process_data(int mgmt_sk)
 	ret = read(mgmt_sk, buf, sizeof(buf));
 	if (ret < 0) {
 		fprintf(stderr, "read: %s\n", strerror(errno));
-		return len;
+		return ret;
 	}
 
 	if (ret < MGMT_HDR_SIZE) {