aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/common
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-11-19 19:19:06 +0100
committerRaimo Niskanen <[email protected]>2013-11-20 12:11:23 +0100
commitcd5f69d2148b77c2700d216939938e250477b5f7 (patch)
tree16851f22705836b9c9d3bfd68927aab207252142 /erts/emulator/drivers/common
parentb4d7911ac364eb913d89ff459a8354a1b3983416 (diff)
downloadotp-cd5f69d2148b77c2700d216939938e250477b5f7.tar.gz
otp-cd5f69d2148b77c2700d216939938e250477b5f7.tar.bz2
otp-cd5f69d2148b77c2700d216939938e250477b5f7.zip
Suppress false valgrind warnings caused by sctp_getpaddrs
Diffstat (limited to 'erts/emulator/drivers/common')
-rw-r--r--erts/emulator/drivers/common/inet_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/drivers/common/inet_drv.c b/erts/emulator/drivers/common/inet_drv.c
index de18656273..f55e6efacc 100644
--- a/erts/emulator/drivers/common/inet_drv.c
+++ b/erts/emulator/drivers/common/inet_drv.c
@@ -3959,6 +3959,7 @@ static int inet_address_to_erlang(char *dst, inet_address **src) {
dst[0] = INET_AF_INET6;
port = sock_ntohs((*src)->sai6.sin6_port);
put_int16(port, dst+1);
+ VALGRIND_MAKE_MEM_DEFINED(&(*src)->sai6.sin6_addr,16); /* false undefs from syscall sctp_get[lp]addrs */
sys_memcpy(dst+1+2, (char *) &(*src)->sai6.sin6_addr, 16);
}
(*src) = (inet_address *) (&(*src)->sai6 + 1);