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