summaryrefslogtreecommitdiff
path: root/src/openvpn/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvpn/route.c')
-rw-r--r--src/openvpn/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvpn/route.c b/src/openvpn/route.c
index 24563ed..f127a90 100644
--- a/src/openvpn/route.c
+++ b/src/openvpn/route.c
@@ -3429,7 +3429,7 @@ struct rtmsg {
#if defined(TARGET_SOLARIS)
#define NEXTADDR(w, u) \
if (rtm_addrs & (w)) { \
- l = ROUNDUP(sizeof(u)); memmove(cp, &(u), l); cp += l; \
+ l = sizeof(u); memmove(cp, &(u), l); cp += ROUNDUP(l); \
}
#define ADVANCE(x, n) (x += ROUNDUP(sizeof(struct sockaddr_in)))