X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fqos%2Fqos_record.c;h=7181e3bf59937557fcc6493d7f5f1eecc3826153;hb=07f3586c5a9868ccee381af528de39b373d7720a;hp=c69b4f1f9d05c1e1cffaa8aa9a7c23b8eaff367c;hpb=400378f056f18e9982684feff094258288ae748d;p=vpp.git diff --git a/src/vnet/qos/qos_record.c b/src/vnet/qos/qos_record.c index c69b4f1f9d0..7181e3bf599 100644 --- a/src/vnet/qos/qos_record.c +++ b/src/vnet/qos/qos_record.c @@ -68,7 +68,7 @@ qos_record_enable (u32 sw_if_index, qos_source_t input_source) int qos_record_disable (u32 sw_if_index, qos_source_t input_source) { - if (vec_len (qos_record_configs[input_source]) < sw_if_index) + if (vec_len (qos_record_configs[input_source]) <= sw_if_index) return VNET_API_ERROR_NO_MATCHING_INTERFACE; if (0 == qos_record_configs[input_source][sw_if_index])