summaryrefslogtreecommitdiff
path: root/accel-pptpd/ctrl
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pptpd/ctrl')
-rw-r--r--accel-pptpd/ctrl/pppoe/pppoe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pptpd/ctrl/pppoe/pppoe.c b/accel-pptpd/ctrl/pppoe/pppoe.c
index 8d79ea9..2ec8bc2 100644
--- a/accel-pptpd/ctrl/pppoe/pppoe.c
+++ b/accel-pptpd/ctrl/pppoe/pppoe.c
@@ -403,6 +403,7 @@ static void generate_cookie(struct pppoe_serv_t *serv, const uint8_t *src, uint8
uint8_t raw[24];
} u1, u2;
+ memset(&key, 0, sizeof(key));
DES_random_key(&key);
DES_set_key(&key, &ks);
@@ -1163,6 +1164,7 @@ static int init_secret(struct pppoe_serv_t *serv)
close(fd);
+ memset(key, 0, sizeof(key));
DES_random_key(&key);
DES_set_key(&key, &serv->des_ks);