mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ldap_pvt_thread_pool_getkey() arg 'data' should point to a void* variable
This commit is contained in:
parent
5ebb7ee175
commit
2ab2740cbb
@ -268,7 +268,7 @@ static int k5key_chk(
|
|||||||
const struct berval *cred,
|
const struct berval *cred,
|
||||||
const char **text )
|
const char **text )
|
||||||
{
|
{
|
||||||
void *ctx;
|
void *ctx, *op_tmp;
|
||||||
Operation *op;
|
Operation *op;
|
||||||
int rc;
|
int rc;
|
||||||
Entry *e;
|
Entry *e;
|
||||||
@ -281,9 +281,10 @@ static int k5key_chk(
|
|||||||
/* Find our thread context, find our Operation */
|
/* Find our thread context, find our Operation */
|
||||||
ctx = ldap_pvt_thread_pool_context();
|
ctx = ldap_pvt_thread_pool_context();
|
||||||
|
|
||||||
if ( ldap_pvt_thread_pool_getkey( ctx, smbk5pwd_op_cleanup, (void **)&op, NULL ) ||
|
if ( ldap_pvt_thread_pool_getkey( ctx, smbk5pwd_op_cleanup, &op_tmp, NULL )
|
||||||
!op )
|
|| !op_tmp )
|
||||||
return LUTIL_PASSWD_ERR;
|
return LUTIL_PASSWD_ERR;
|
||||||
|
op = op_tmp;
|
||||||
|
|
||||||
rc = be_entry_get_rw( op, &op->o_req_ndn, NULL, NULL, 0, &e );
|
rc = be_entry_get_rw( op, &op->o_req_ndn, NULL, NULL, 0, &e );
|
||||||
if ( rc != LDAP_SUCCESS ) return LUTIL_PASSWD_ERR;
|
if ( rc != LDAP_SUCCESS ) return LUTIL_PASSWD_ERR;
|
||||||
|
Loading…
Reference in New Issue
Block a user