X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=proto.c;h=b91fcde412e27a69ab72c9e62f24a03582c7b77d;hb=2475541608efec919ad3cbd0613f0f51fdbd50fd;hp=eaec91325653da91a74f9f589f52b1f50b443157;hpb=cb03623bf254975f3660211580f441d860b27359;p=project%2Fnetifd.git diff --git a/proto.c b/proto.c index eaec913..b91fcde 100644 --- a/proto.c +++ b/proto.c @@ -287,7 +287,7 @@ static bool parse_prefix_option(struct interface *iface, const char *str, size_t len) { char buf[128] = {0}, *saveptr; - if (len > sizeof(buf)) + if (len >= sizeof(buf)) return false; memcpy(buf, str, len);