Subject: CVS commit: src/sys/opencrypto
To: None <source-changes@NetBSD.org>
From: Daniel de Kok <daniel@netbsd.org>
List: source-changes
Date: 01/12/2007 12:00:27
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.