svn commit: r185182 - head/sys/netgraph
Alexander Motin
mav at FreeBSD.org
Sat Nov 22 08:40:12 PST 2008
Author: mav
Date: Sat Nov 22 16:40:12 2008
New Revision: 185182
URL: http://svn.freebsd.org/changeset/base/185182
Log:
Fix typo. Clear session stats instead of config and part of stats.
Found with: Coverity Prevent(tm)
CID: 2472
Modified:
head/sys/netgraph/ng_l2tp.c
Modified: head/sys/netgraph/ng_l2tp.c
==============================================================================
--- head/sys/netgraph/ng_l2tp.c Sat Nov 22 16:14:52 2008 (r185181)
+++ head/sys/netgraph/ng_l2tp.c Sat Nov 22 16:40:12 2008 (r185182)
@@ -733,7 +733,7 @@ ng_l2tp_reset_session(hook_p hook, void
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;
}
More information about the svn-src-head
mailing list