From: Gurucharan Shetty Date: Mon, 23 Sep 2013 21:13:35 +0000 (-0700) Subject: odp-util: Parse the in_port as a name correctly. X-Git-Tag: sliver-openvswitch-2.0.90-1~13^2~9 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c46c613a9a31be1684358ae97f11bd6383233955;p=sliver-openvswitch.git odp-util: Parse the in_port as a name correctly. Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff --- diff --git a/lib/odp-util.c b/lib/odp-util.c index 5ca8baf34..aec4196a4 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -1665,7 +1665,7 @@ parse_odp_key_mask_attr(const char *s, const struct simap *port_names, int name_len; name = s + 8; - name_len = strcspn(s, ")"); + name_len = strcspn(name, ")"); node = simap_find_len(port_names, name, name_len); if (node) { nl_msg_put_u32(key, OVS_KEY_ATTR_IN_PORT, node->data);