diff options
author | Matthew Smith <mgsmith@netgate.com> | 2021-10-22 09:53:44 -0500 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-10-28 11:00:57 +0000 |
commit | 2b716b186fdfe0a40d6ddb9e43c795bb05d1ca10 (patch) | |
tree | 95b03d9ddf0c57149b90aa71e418046bea42824a /src/vnet/dpo/mpls_label_dpo.h | |
parent | c19ac303404966433096c4855a8192f746973522 (diff) |
tap: handle null namespace and bridge correctly
Type: fix
In tap_create_if(), if args->host_namespace or args->host_bridge are
null because no values were set for those, the virtio_if_t entry in
virtio_main.interfaces ends up getting populated with values of "(nil)"
in net_ns or host_bridge, respectively.
Check whether args->host_namespace and args->host_bridge are null before
trying to set the corresponding fields on virtio_if_t.
Change-Id: I8e1e66a6d7b246e7c66fece406d116ffb1312c64
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
Diffstat (limited to 'src/vnet/dpo/mpls_label_dpo.h')
0 files changed, 0 insertions, 0 deletions