git: 27cbc1a7fe74 - main - netlink: fix snl_read_reply_multi().

From: Alexander V. Chernikov <melifaro_at_FreeBSD.org>
Date: Sun, 02 Apr 2023 12:42:08 UTC
The branch main has been updated by melifaro:

URL: https://cgit.FreeBSD.org/src/commit/?id=27cbc1a7fe742b53935cca79e741738dfd7b59df

commit 27cbc1a7fe742b53935cca79e741738dfd7b59df
Author:     Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2023-04-02 12:41:04 +0000
Commit:     Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2023-04-02 12:41:53 +0000

    netlink: fix snl_read_reply_multi().
    
    CID:            1506956
    MFC after:      2 weeks
---
 sys/netlink/netlink_snl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netlink/netlink_snl.h b/sys/netlink/netlink_snl.h
index 399e1d6781c8..88d7c3a1fc22 100644
--- a/sys/netlink/netlink_snl.h
+++ b/sys/netlink/netlink_snl.h
@@ -667,7 +667,7 @@ snl_read_reply_multi(struct snl_state *ss, uint32_t nlmsg_seq, struct snl_errmsg
 	} else if (hdr->nlmsg_type == NLMSG_ERROR) {
 		if (!snl_parse_errmsg(ss, hdr, e))
 			e->error = EINVAL;
-	} if (hdr->nlmsg_type == NLMSG_DONE) {
+	} else if (hdr->nlmsg_type == NLMSG_DONE) {
 		snl_parse_nlmsg(ss, hdr, &snl_donemsg_parser, e);
 	} else
 		return (hdr);