Blame SOURCES/0005-basman-use-return-address-when-pulling-address.patch

dc4502
From f1488bbb0991f99d823d384b00f6fb1de385baa3 Mon Sep 17 00:00:00 2001
dc4502
From: Aaron Conole <aconole@redhat.com>
dc4502
Date: Wed, 10 Nov 2021 16:40:20 -0500
dc4502
Subject: [PATCH 5/8] basman: use return address when pulling address
dc4502
dc4502
The managed address pulling routine will fail to reset the return
dc4502
value from a previous attempt if no IPv4 and IPv6 addresses are
dc4502
available.  Use the return address of the hwaddr fetch.
dc4502
dc4502
Resolves: https://github.com/intel/openlldp/issues/82
dc4502
Signed-off-by: Aaron Conole <aconole@redhat.com>
dc4502
---
dc4502
 lldp_basman.c | 2 +-
dc4502
 1 file changed, 1 insertion(+), 1 deletion(-)
dc4502
dc4502
diff --git a/lldp_basman.c b/lldp_basman.c
dc4502
index 25e7d9e..cb0c50c 100644
dc4502
--- a/lldp_basman.c
dc4502
+++ b/lldp_basman.c
dc4502
@@ -515,7 +515,7 @@ static int basman_bld_manaddr_tlv(struct basman_data *bd,
dc4502
 	if (rc) {
dc4502
 		rc = basman_get_manaddr_sub(bd, agent, MANADDR_IPV6);
dc4502
 		if (rc)
dc4502
-			basman_get_manaddr_sub(bd, agent, MANADDR_ALL802);
dc4502
+			rc = basman_get_manaddr_sub(bd, agent, MANADDR_ALL802);
dc4502
 	}
dc4502
 out_err:
dc4502
 	return rc;
dc4502
-- 
dc4502
2.31.1
dc4502