summaryrefslogtreecommitdiffstats
path: root/mroute.c
diff options
context:
space:
mode:
authorJuanJo Ciarlante <jjo@google.com>2009-10-20 22:38:50 +0200
committerJuanJo Ciarlante <juanjosec@gmail.com>2011-03-25 13:30:30 +0100
commit1ad6fc2976c6e5eedb248769e4b1f48e33c75346 (patch)
tree02e7f478e1e6d11639f52ef78f6547155a568cd1 /mroute.c
parentebce9fba41421c948e1399bfe29bfa028d936076 (diff)
downloadopenvpn-1ad6fc2976c6e5eedb248769e4b1f48e33c75346.tar.gz
openvpn-1ad6fc2976c6e5eedb248769e4b1f48e33c75346.tar.xz
openvpn-1ad6fc2976c6e5eedb248769e4b1f48e33c75346.zip
* no new funcionality, just small cleanups:
- cmdline options help: add tcp6/udp6 missing messages - win32: expand usage of proto_is_udp(), proto_is_tcp() - replace some memset(&obj, 0, sizeof obj) by openvpn's CLEAR(obj)
Diffstat (limited to 'mroute.c')
-rw-r--r--mroute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mroute.c b/mroute.c
index a2c66f3..56e01a2 100644
--- a/mroute.c
+++ b/mroute.c
@@ -365,7 +365,7 @@ mroute_addr_print_ex (const struct mroute_addr *ma,
struct sockaddr_in6 sin6;
int port;
char buf6[INET6_ADDRSTRLEN] = "";
- memset(&sin6, 0, sizeof sin6);
+ CLEAR(sin6);
sin6.sin6_family = AF_INET6;
buf_set_read (&buf, maddr.addr, maddr.len);
if (buf_read(&buf, &sin6.sin6_addr, sizeof (sin6.sin6_addr)))