diff options
Diffstat (limited to 'meta-oe/recipes-support/openldap/openldap-2.4.39/thread_stub.patch')
-rw-r--r-- | meta-oe/recipes-support/openldap/openldap-2.4.39/thread_stub.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/openldap/openldap-2.4.39/thread_stub.patch b/meta-oe/recipes-support/openldap/openldap-2.4.39/thread_stub.patch new file mode 100644 index 000000000..540ba4a63 --- /dev/null +++ b/meta-oe/recipes-support/openldap/openldap-2.4.39/thread_stub.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | openldap: set pointer | ||
2 | |||
3 | When the function ldap_pvt_thread_pool_getkey() succeeds, it | ||
4 | must set the value of *data since the caller may try to use it. | ||
5 | |||
6 | Upstream-Status: pending | ||
7 | |||
8 | Signed-off-by: Joe Slater <jslater@windriver.com> | ||
9 | |||
10 | |||
11 | --- a/libraries/libldap_r/thr_stub.c | ||
12 | +++ b/libraries/libldap_r/thr_stub.c | ||
13 | @@ -217,6 +217,7 @@ ldap_pvt_thread_pool_unidle ( ldap_pvt_t | ||
14 | int ldap_pvt_thread_pool_getkey ( | ||
15 | void *ctx, void *key, void **data, ldap_pvt_thread_pool_keyfree_t **kfree ) | ||
16 | { | ||
17 | + if (data) *data = NULL; /* avoid problems with uninitialized *data */ | ||
18 | return(0); | ||
19 | } | ||
20 | |||