summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxebd <xeb@mail.ru>2019-11-18 11:15:45 +0300
committerGitHub <noreply@github.com>2019-11-18 11:15:45 +0300
commit646c760f70c0492de6b88419199c4cbe1e687ee4 (patch)
treea6c02f7da5b4df192a77c3ec3c739447e83662c5
parenta4fe1168dda707a2836f6d74c7a6610645b20152 (diff)
parentfeabf98d002eb2c9ecb80e3bcbe3c9efd4ed382e (diff)
downloadaccel-ppp-646c760f70c0492de6b88419199c4cbe1e687ee4.tar.gz
accel-ppp-646c760f70c0492de6b88419199c4cbe1e687ee4.zip
Merge pull request #103 from themiron/master
ipv6: dhcpv6: fix pd gateway logging
-rw-r--r--accel-pppd/ipv6/dhcpv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ipv6/dhcpv6.c b/accel-pppd/ipv6/dhcpv6.c
index 6daed667..fc9f4ca1 100644
--- a/accel-pppd/ipv6/dhcpv6.c
+++ b/accel-pppd/ipv6/dhcpv6.c
@@ -188,7 +188,7 @@ static void insert_dp_routes(struct ap_session *ses, struct dhcpv6_pd *pd, struc
} else if (conf_verbose) {
inet_ntop(AF_INET6, &p->addr, str1, sizeof(str1));
if (addr)
- inet_ntop(AF_INET6, &addr, str2, sizeof(str2));
+ inet_ntop(AF_INET6, addr, str2, sizeof(str2));
log_ppp_info2("dhcpv6: route add %s/%i%s%s\n", str1, p->prefix_len,
addr ? " via " : "", str2);
}