File 0010-fcoemon-fixup-log_nlmsg_error.patch of Package fcoe-utils.3610
From 7eb80f89a3f4a2d4697b2879b6c6a87618b8aa8b Mon Sep 17 00:00:00 2001
From: Hannes Reinecke <hare@suse.de>
Date: Tue, 28 Jun 2016 13:46:03 +0200
Subject: fcoemon: fixup log_nlmsg_error()
The error message is in the data, no the next message.
Signed-off-by: Hannes Reinecke <hare@suse.com>
---
fcoemon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fcoemon.c b/fcoemon.c
index 6fe50a2..1f95c95 100644
--- a/fcoemon.c
+++ b/fcoemon.c
@@ -755,7 +755,7 @@ static void log_nlmsg_error(struct nlmsghdr *hp, size_t rlen, const char *str)
struct nlmsgerr *ep;
if (NLMSG_OK(hp, rlen)) {
- ep = (struct nlmsgerr *)NLMSG_NEXT(hp, rlen);
+ ep = (struct nlmsgerr *)NLMSG_DATA(hp);
FCM_LOG_DBG("%s, err=%d, type=%d\n",
str, ep->error, ep->msg.nlmsg_type);
} else {
--
2.6.6