Projects
Eulaceura:Factory
dhcp
_service:obs_scm:dhcpd-coredump-infiniband.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:dhcpd-coredump-infiniband.patch of Package dhcp
From d7b7c875ca93e2bca12d6cf5ff02d78d03030cf9 Mon Sep 17 00:00:00 2001 From: zhanglu <zhanglu37@huawei.com> Date: Wed, 22 Jan 2020 14:39:19 +0800 Subject: [PATCH] dhcpd-coredump-infiniband.patch --- common/lpf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/lpf.c b/common/lpf.c index 0cc9e8a..a3f0ead 100644 --- a/common/lpf.c +++ b/common/lpf.c @@ -754,6 +754,11 @@ get_hw_addr3(struct interface_info *info, struct ifaddrs *ifaddrs_start) */ if ((colon = strchr(dup, ':')) != NULL) { *colon = '\0'; + + if (sll_allocated) { + dfree(sll, MDL); + sll_allocated = 0; + } if ((sll = get_ll(ifaddrs, &ifa, dup)) == NULL) log_fatal("Error getting hardware address for \"%s\": %m", name); } @@ -802,7 +807,6 @@ get_hw_addr3(struct interface_info *info, struct ifaddrs *ifaddrs_start) if (sll_allocated) dfree(sll, MDL); - //freeifaddrs(ifaddrs); return result; } -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2