]> git.proxmox.com Git - mirror_iproute2.git/commit
rdma: Fix for ineffective check in add_filter()
authorPhil Sutter <phil@nwl.cc>
Thu, 18 Oct 2018 11:41:54 +0000 (13:41 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 22 Oct 2018 17:05:18 +0000 (10:05 -0700)
commit3b0070f6b1a319b7d6a431a39270a4804cb5927e
tree8e341128580860fafc92d51e5b5cb16d9c96e3e8
parentb1ffc1f465928706e22d585932cead8d74f021de
rdma: Fix for ineffective check in add_filter()

With 'name' field defined as array in struct filters, it will always
contain a value irrespective of whether a name was assigned or not.

Fix this by turning the field into a const char pointer.

Fixes: 1174be72d1b4c ("rdma: Add filtering infrastructure")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/rdma.h