]> git.pld-linux.org Git - packages/nss_db.git/blob - nss_db-initialize.patch
- patches from FC, descriptions inside
[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 --- 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.12727 seconds and 3 git commands to generate.