diff options
Diffstat (limited to 'lib/libbsnmp/modules/snmp_netgraph/snmp_netgraph.c')
-rw-r--r-- | lib/libbsnmp/modules/snmp_netgraph/snmp_netgraph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libbsnmp/modules/snmp_netgraph/snmp_netgraph.c b/lib/libbsnmp/modules/snmp_netgraph/snmp_netgraph.c index b4751fa..5aad23b 100644 --- a/lib/libbsnmp/modules/snmp_netgraph/snmp_netgraph.c +++ b/lib/libbsnmp/modules/snmp_netgraph/snmp_netgraph.c @@ -743,7 +743,7 @@ ng_mkpeer_id(ng_ID_t id, const char *nodename, const char *type, &mkpeer, sizeof(mkpeer)) == -1) return (0); - if ((id = ng_next_node_id_internal(id, NULL, hook, 0)) == NULL) + if ((id = ng_next_node_id_internal(id, NULL, hook, 0)) == 0) return (0); if (nodename != NULL) { |