summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_pppoe.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/ng_pppoe.c')
-rw-r--r--sys/netgraph/ng_pppoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c
index b62d812..1340451 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);
}
OpenPOWER on IntegriCloud