diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-31 14:10:09 +0200 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-02-02 00:25:15 +0200 |
| commit | 5dfa36b6a7bf52041e61ea3bdcf8fd7c92fc61af (patch) | |
| tree | b9f0fe2a202e118e47f52d9020864654a5521212 /staticd/static_main.c | |
| parent | d205208f57855a219e9c72b8a24976af3eb34bcd (diff) | |
staticd: fix nexthops without interface
When interface is not set in "ip route" command, CLI passes "(null)" as
an interface name instead of an empty string. The actual code in turn
uses "nh->ifname[0] != 0" to check if the interface name was set. Fix
the problem by changing the "(null)" string into an empty string when
populating the nexthop structure.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'staticd/static_main.c')
0 files changed, 0 insertions, 0 deletions
