examples/ip_pipeline: fix null pointer dereference
Fixes NULL pointer dereference issue raised by Coverity.
Coverity issue: 325728, 325729, 325731, 325738
Fixes: 27b333b232
("examples/ip_pipeline: track table rules on add bulk")
Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
This commit is contained in:
parent
1c25cf4a1c
commit
c44ae27a59
@ -6841,10 +6841,16 @@ cli_rule_file_process(const char *file_name,
|
||||
return 0;
|
||||
|
||||
cli_rule_file_process_free:
|
||||
if (rule_list != NULL)
|
||||
*rule_list = NULL;
|
||||
|
||||
if (n_rules != NULL)
|
||||
*n_rules = rule_id;
|
||||
|
||||
if (line_number != NULL)
|
||||
*line_number = line_id;
|
||||
|
||||
if (list != NULL)
|
||||
for ( ; ; ) {
|
||||
struct table_rule *rule;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user