summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-11-29 15:29:38 +0300
committerKozlov Dmitry <dima@server>2010-11-29 15:29:38 +0300
commit760e74984ee083ac86e8b03f9e43613a1b7f12c8 (patch)
tree99e247d9ce9b0575349495dd62a4c7f99849900d
parentb33fa7609d8c58c1aa1fc219e491f46c109aa146 (diff)
downloadaccel-ppp-760e74984ee083ac86e8b03f9e43613a1b7f12c8.tar.gz
accel-ppp-760e74984ee083ac86e8b03f9e43613a1b7f12c8.zip
l2tp: fixed incorrect Called-Station-Id
-rw-r--r--accel-pptpd/ctrl/l2tp/l2tp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pptpd/ctrl/l2tp/l2tp.c b/accel-pptpd/ctrl/l2tp/l2tp.c
index d7aeae8..bcd9a18 100644
--- a/accel-pptpd/ctrl/l2tp/l2tp.c
+++ b/accel-pptpd/ctrl/l2tp/l2tp.c
@@ -337,7 +337,7 @@ static int l2tp_tunnel_alloc(struct l2tp_serv_t *serv, struct l2tp_packet_t *pac
conn->ctrl.calling_station_id = _malloc(17);
conn->ctrl.called_station_id = _malloc(17);
u_inet_ntoa(conn->addr.sin_addr.s_addr, conn->ctrl.calling_station_id);
- u_inet_ntoa(serv->addr.sin_addr.s_addr, conn->ctrl.called_station_id);
+ u_inet_ntoa(addr.sin_addr.s_addr, conn->ctrl.called_station_id);
ppp_init(&conn->ppp);
conn->ppp.ctrl = &conn->ctrl;