[CRIU] [PATCH] sk-inet: fix a value of INET_ADDR_LEN
Andrey Vagin
avagin at openvz.org
Thu May 19 17:35:01 PDT 2016
From: Andrew Vagin <avagin at virtuozzo.com>
man of inet_ntop says that INET_ADDR_LEN should not be less than
INET_ADDRSTRLEN and INET6_ADDRSTRLEN
Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
criu/include/sk-inet.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/include/sk-inet.h b/criu/include/sk-inet.h
index ae6082d..1b4925e 100644
--- a/criu/include/sk-inet.h
+++ b/criu/include/sk-inet.h
@@ -9,7 +9,7 @@
#include "protobuf.h"
#include "images/sk-inet.pb-c.h"
-#define INET_ADDR_LEN 40
+#define INET_ADDR_LEN 48 /* max of INET_ADDRSTRLEN and INET6_ADDRSTRLEN */
#ifndef TCP_REPAIR
#define TCP_REPAIR 19 /* TCP sock is under repair right now */
#define TCP_REPAIR_QUEUE 20
--
2.7.4
More information about the CRIU
mailing list