summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/Netlink/Netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'datapath-windows/ovsext/Netlink/Netlink.c')
-rw-r--r--datapath-windows/ovsext/Netlink/Netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/Netlink/Netlink.c b/datapath-windows/ovsext/Netlink/Netlink.c
index cfbc73a3b..1ceb5e3ca 100644
--- a/datapath-windows/ovsext/Netlink/Netlink.c
+++ b/datapath-windows/ovsext/Netlink/Netlink.c
@@ -945,7 +945,7 @@ NlAttrParse(const PNL_MSG_HDR nlMsg, UINT32 attrOffset,
for (iter = 0; iter < n_attrs; iter++) {
const PNL_POLICY e = (const PNL_POLICY)(&policy[iter]);
- if (e->type != NL_A_NO_ATTR && !attrs[iter]) {
+ if (!e->optional && e->type != NL_A_NO_ATTR && !attrs[iter]) {
OVS_LOG_ERROR("Required attr:%d missing", iter);
goto done;
}