diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2020-10-16 21:44:29 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2020-10-16 21:44:29 -0400 |
| commit | 2b442f69e22d1592a67490731a6e9d7443351476 (patch) | |
| tree | 1671d647793de2ae81371f89a45be3fa9c98808a /lib/workqueue.c | |
| parent | 421791c5b60313b37f243584051c011150581c19 (diff) | |
sharpd: Fix nexthop group name collision
If you have two nexthop groups named
one
oneone
then the sharp daemon will treat them as the same nexthop
group. This is because we are doign this:
static int sharp_nhg_compare_func(const struct sharp_nhg *a,
const struct sharp_nhg *b)
{
return strncmp(a->name, b->name, strlen(a->name));
}
The strlen should be the size of the array of name.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/workqueue.c')
0 files changed, 0 insertions, 0 deletions
