diff options
-rw-r--r-- | sys/netgraph/ng_bridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_bridge.c b/sys/netgraph/ng_bridge.c index 57db73e..a902f00 100644 --- a/sys/netgraph/ng_bridge.c +++ b/sys/netgraph/ng_bridge.c @@ -1046,7 +1046,7 @@ ng_bridge_nodename(node_p node) { static char name[NG_NODESIZ]; - if (NG_NODE_NAME(node) != NULL) + if (NG_NODE_HAS_NAME(node)) snprintf(name, sizeof(name), "%s", NG_NODE_NAME(node)); else snprintf(name, sizeof(name), "[%x]", ng_node2ID(node)); |