[CRIU] [PATCH 4/4] show: Fix inet6 addresses showing

Pavel Emelyanov xemul at parallels.com
Fri Jul 11 09:20:58 PDT 2014


Was broken by d57be38c -- this one pretty show does return 1.

Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 protobuf.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/protobuf.c b/protobuf.c
index 41183fe..384a8e0 100644
--- a/protobuf.c
+++ b/protobuf.c
@@ -364,7 +364,8 @@ static void pb_show_repeated(const ProtobufCFieldDescriptor *fd,
 	for (i = 0; i < nr_fields; i++) {
 		if (i)
 			pr_msg(":");
-		sh->show(field);
+		if (sh->show(field))
+			break;
 		field->data += sh->fsize;
 	}
 }
-- 
1.8.4.2




More information about the CRIU mailing list