eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 8f0c4a769a0e27b3983a42305181261c2d0ac65a
parent 3d77748bca833efdd31fc0a61043b7fc7c7c692f
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date:   Wed, 26 Sep 2018 14:57:41 -0700

ttls: clear the obtained memory to prevent info leaks

Diffstat:
Msrc/eap-ttls.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/eap-ttls.c b/src/eap-ttls.c @@ -58,6 +58,9 @@ struct avp_builder { static void avp_builder_grow(struct avp_builder *builder) { builder->buf = l_realloc(builder->buf, builder->capacity * 2); + + memset(builder->buf + builder->capacity, 0, builder->capacity); + builder->capacity *= 2; } @@ -132,7 +135,10 @@ static struct avp_builder *avp_builder_new(size_t capacity) return NULL; builder = l_new(struct avp_builder, 1); + builder->buf = l_malloc(capacity); + memset(builder->buf, 0, capacity); + builder->capacity = capacity; return builder;