From b0239937083cbb3a4fb40ef524a7a078ccdaab2e Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Sat, 22 Nov 2008 16:40:12 +0000 Subject: [PATCH] Fix typo. Clear session stats instead of config and part of stats. Found with: Coverity Prevent(tm) CID: 2472 --- sys/netgraph/ng_l2tp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netgraph/ng_l2tp.c b/sys/netgraph/ng_l2tp.c index d24b321f71d..46dcba95a4d 100644 --- a/sys/netgraph/ng_l2tp.c +++ b/sys/netgraph/ng_l2tp.c @@ -733,7 +733,7 @@ ng_l2tp_reset_session(hook_p hook, void *arg) if (hpriv != NULL) { hpriv->conf.control_dseq = 0; hpriv->conf.enable_dseq = 0; - bzero(&hpriv->conf, sizeof(struct ng_l2tp_session_stats)); + bzero(&hpriv->stats, sizeof(struct ng_l2tp_session_stats)); hpriv->nr = 0; hpriv->ns = 0; }