Subject: PR/35412 CVS commit: src/sys/opencrypto
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Daniel de Kok <daniel@netbsd.org>
List: netbsd-bugs
Date: 01/12/2007 12:05:03
The following reply was made to PR kern/35412; it has been noted by GNATS.
From: Daniel de Kok <daniel@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/35412 CVS commit: src/sys/opencrypto
Date: Fri, 12 Jan 2007 12:00:27 +0000 (UTC)
Module Name: src
Committed By: daniel
Date: Fri Jan 12 12:00:27 UTC 2007
Modified Files:
src/sys/opencrypto: crypto.c
Log Message:
crypto_init does not call crypto_init0 only once, because the marker
created with ONCE_DECL() is local. This results in reinitializing
the driver list when crypto_get_driverid() (and leaks memory). Fix
this by making the marker static.
Fixes PR/35412.
Ack freza@.
To generate a diff of this commit:
cvs rdiff -r1.17 -r1.18 src/sys/opencrypto/crypto.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.