]> git.pld-linux.org Git - packages/nss_db.git/blame - nss_db-initialize.patch
- BR: db-devel, gcc-c++ (because of broken configure)
[packages/nss_db.git] / nss_db-initialize.patch
CommitLineData
14a3d93c
JR
1Initialize all of the fields of the key to zeroes, so that we don't pass
2garbage keys in to later versions of Berkeley DB.
3--- nss_db-2.2/src/db-XXX.c 2005-03-29 16:13:57.103516704 -0500
4+++ nss_db-2.2/src/db-XXX.c 2005-03-29 16:13:47.108821931 -0500
5@@ -225,6 +225,7 @@
6 DBT key; \
7 enum nss_status status; \
8 const size_t size = (keysize) + 1; \
9+ memset(&key, 0, sizeof(key)); \
10 key.data = alloca (size); \
11 key.size = KEYPRINTF keypattern; \
12 key.flags = 0; \
This page took 0.161635 seconds and 4 git commands to generate.