Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
fcoe-utils
0034-fipvlan-do-not-crash-on-empty-MAC-address-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0034-fipvlan-do-not-crash-on-empty-MAC-address-in-lookup_.patch of Package fcoe-utils
From eb7451d0dcffb1c247e2b070b6101c2c878faee4 Mon Sep 17 00:00:00 2001 From: Hannes Reinecke <hare@suse.de> Date: Mon, 12 May 2014 15:24:48 +0200 Subject: fipvlan: do not crash on empty MAC address in lookup_fcf() We're calling lookup_fcf() with a NULL macaddress, so we need to ensure we don't crash here. References: bnc#877275 Signed-off-by: Hannes Reinecke <hare@suse.de> --- fipvlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fipvlan.c b/fipvlan.c index 163d21e..c5f3d3f 100644 --- a/fipvlan.c +++ b/fipvlan.c @@ -169,7 +169,7 @@ static struct fcf *lookup_fcf(struct fcf_list_head *head, int ifindex, TAILQ_FOREACH(fcf, head, list_node) if ((ifindex == fcf->ifindex) && (vlan == fcf->vlan) && - (memcmp(mac, fcf->mac_addr, ETHER_ADDR_LEN) == 0)) + (!mac || memcmp(mac, fcf->mac_addr, ETHER_ADDR_LEN) == 0)) return fcf; return NULL; } -- 1.7.12.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor