openvswitch: Fix log message in ovs conntrack

Fixes: 06bd2bdf19 ("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>
This commit is contained in:
Yi-Hung Wei 2019-08-21 17:16:10 -07:00 committed by David S. Miller
parent 12e2e15d83
commit 12c6bc38f9
1 changed files with 1 additions and 1 deletions

View File

@ -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;