Project

General

Profile

Actions

Bug #7359

closed

NULL pointer at strcmp() in ipmgmt_nvlist_match()

Added by Igor Kozhukhov about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Start date:
2016-09-06
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

we need compare 2 nvlists in ipmgmt_nvlist_match where we have no '_protocol' property for line like:
_aobjname=lo0/v4;_ifname=lo0;_lifnum=0;_family=2;_flags=1;_atype=1;_addr=;

we should check NULL for proto and db_proto before pass arguments to strcmp()
also, need update others checks too.
i'd like propose update strcmp -> strncmp

Actions

Also available in: Atom PDF