mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r14293: fixed some errors found with beam
(This used to be commit 230636a00e
)
This commit is contained in:
parent
335d07d811
commit
964373b25d
@ -496,6 +496,9 @@ static int password_hash_handle(struct ldb_module *module, struct ldb_request *r
|
||||
continue;
|
||||
}
|
||||
ASN1_MALLOC_ENCODE(Key, buf, buf_size, &keys[i], &len, krb5_ret);
|
||||
if (krb5_ret) {
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
}
|
||||
|
||||
val.data = talloc_memdup(req, buf, len);
|
||||
val.length = len;
|
||||
@ -549,6 +552,9 @@ static int password_hash_handle(struct ldb_module *module, struct ldb_request *r
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
}
|
||||
ASN1_MALLOC_ENCODE(Key, buf, buf_size, &key, &len, krb5_ret);
|
||||
if (krb5_ret) {
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
}
|
||||
krb5_free_keyblock_contents(smb_krb5_context->krb5_context,
|
||||
&key.key);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user