From: Roy Marples Date: Sat, 7 Jun 2014 21:02:29 +0000 (+0000) Subject: Fix a potential garbage jump X-Git-Tag: v6.4.0~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34e4831f694539f908c0b9418cbc87430aa11424;p=thirdparty%2Fdhcpcd.git Fix a potential garbage jump --- diff --git a/ipv6.c b/ipv6.c index ce0cc62b..2c1280f4 100644 --- a/ipv6.c +++ b/ipv6.c @@ -206,6 +206,7 @@ ipv6_readsecret(struct dhcpcd_ctx *ctx) int x; if ((fp = fopen(SECRET, "r"))) { + len = 0; while (fgets(line, sizeof(line), fp)) { len = strlen(line); if (len) {