From 14dc804e64e06e15a73b0e2284d9d16fd93dd236 Mon Sep 17 00:00:00 2001 From: glebius Date: Sun, 2 Nov 2014 05:51:31 +0000 Subject: [PATCH] NG_NODE_NAME(node) is always not NULL. Use correct macro. Submitted by: Dmitry Luhtionov --- sys/netgraph/ng_bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netgraph/ng_bridge.c b/sys/netgraph/ng_bridge.c index 57db73e60c3d..a902f00a477d 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));