X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=tc%2Fem_cmp.c;h=b8f9b467bc9f8ca5f09dce223f6d1d7de1d8110a;hb=ae665a522bd46bea44c5ea84c89c8b1731954170;hp=c636c53ad5b69c467afca80dfac55252bc3e5c5a;hpb=0bf0fbc47e33cc968c1c1d20d938de31e497c753;p=mirror_iproute2.git diff --git a/tc/em_cmp.c b/tc/em_cmp.c index c636c53a..b8f9b467 100644 --- a/tc/em_cmp.c +++ b/tc/em_cmp.c @@ -63,7 +63,7 @@ static int cmp_parse_eopt(struct nlmsghdr *n, struct tcf_ematch_hdr *hdr, align = TCF_EM_ALIGN_U32; else return PARSE_ERR(args, "cmp: invalid alignment"); - + for (a = bstr_next(args); a; a = bstr_next(a)) { if (!bstrcmp(a, "at")) { if (a->next == NULL) @@ -111,7 +111,7 @@ static int cmp_parse_eopt(struct nlmsghdr *n, struct tcf_ematch_hdr *hdr, opnd = TCF_EM_OPND_GT; else if (!bstrcmp(a, "lt")) opnd = TCF_EM_OPND_LT; - + if (a->next == NULL) return PARSE_ERR(a, "cmp: missing argument"); a = bstr_next(a);