diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c index b62d8121061d..13404510de3c 100644 --- a/sys/netgraph/ng_pppoe.c +++ b/sys/netgraph/ng_pppoe.c @@ -540,7 +540,7 @@ pppoe_find_svc(node_p node, const char *svc_name, int svc_len) neg = sp->neg; if (neg->service_len == svc_len && - strncmp(svc_name, neg->service.data, svc_len == 0)) + strncmp(svc_name, neg->service.data, svc_len) == 0) return (hook); }