diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2010-12-23 00:24:17 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2010-12-23 00:24:17 +0300 |
commit | 6268016c6aeaefd500b879260ab9a5b69eb911dc (patch) | |
tree | 44e23ee0be92b18bf63860a10ee740b85bc94a26 /accel-pptpd | |
parent | 6c84bbb0a4c612f31de37fb544ed0e263ddbfa42 (diff) | |
download | accel-ppp-6268016c6aeaefd500b879260ab9a5b69eb911dc.tar.gz accel-ppp-6268016c6aeaefd500b879260ab9a5b69eb911dc.zip |
pptp: zero sockaddr structures before using (make valgrind happy)
Diffstat (limited to 'accel-pptpd')
-rw-r--r-- | accel-pptpd/ctrl/pptp/pptp.c | 2 | ||||
-rw-r--r-- | accel-pptpd/triton/triton.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/accel-pptpd/ctrl/pptp/pptp.c b/accel-pptpd/ctrl/pptp/pptp.c index c1513a0..0b92474 100644 --- a/accel-pptpd/ctrl/pptp/pptp.c +++ b/accel-pptpd/ctrl/pptp/pptp.c @@ -277,6 +277,7 @@ static int pptp_out_call_rqst(struct pptp_conn_t *conn) return 0; } + memset(&src_addr, 0, sizeof(src_addr)); src_addr.sa_family = AF_PPPOX; src_addr.sa_protocol = PX_PROTO_PPTP; src_addr.sa_addr.pptp.call_id = 0; @@ -284,6 +285,7 @@ static int pptp_out_call_rqst(struct pptp_conn_t *conn) getsockname(conn->hnd.fd, (struct sockaddr*)&addr, &addrlen); src_addr.sa_addr.pptp.sin_addr = addr.sin_addr; + memset(&dst_addr, 0, sizeof(dst_addr)); dst_addr.sa_family = AF_PPPOX; dst_addr.sa_protocol = PX_PROTO_PPTP; dst_addr.sa_addr.pptp.call_id = htons(msg->call_id); diff --git a/accel-pptpd/triton/triton.c b/accel-pptpd/triton/triton.c index 01c6128..1a2cd2b 100644 --- a/accel-pptpd/triton/triton.c +++ b/accel-pptpd/triton/triton.c @@ -8,8 +8,6 @@ #include "triton_p.h" #include "memdebug.h" -#include <valgrind/drd.h> - int thread_count = 2; int max_events = 64; |