Skip to content

Commit

Permalink
openvswitch: Fix log message in ovs conntrack
Browse files Browse the repository at this point in the history
Fixes: 06bd2bd ("openvswitch: Add timeout support to ct action")
Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
YiHungWei authored and davem330 committed Aug 24, 2019
1 parent 12e2e15 commit 12c6bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/openvswitch/conntrack.c
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ static int parse_ct(const struct nlattr *attr, struct ovs_conntrack_info *info,
case OVS_CT_ATTR_TIMEOUT:
memcpy(info->timeout, nla_data(a), nla_len(a));
if (!memchr(info->timeout, '\0', nla_len(a))) {
OVS_NLERR(log, "Invalid conntrack helper");
OVS_NLERR(log, "Invalid conntrack timeout");
return -EINVAL;
}
break;
Expand Down

0 comments on commit 12c6bc3

Please sign in to comment.