mirror of
https://github.com/samba-team/samba.git
synced 2025-12-05 12:23:50 +03:00
r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
large commit. I thought this was worthwhile to get done for consistency.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
1d1a9c11ee
commit
ec32b22ed5
@@ -94,7 +94,7 @@ const char **gensec_security_oids(TALLOC_CTX *mem_ctx, const char *skip)
|
||||
if (!ops) {
|
||||
return NULL;
|
||||
}
|
||||
oid_list = talloc_array_p(mem_ctx, const char *, num_backends + 1);
|
||||
oid_list = talloc_array(mem_ctx, const char *, num_backends + 1);
|
||||
if (!oid_list) {
|
||||
return NULL;
|
||||
}
|
||||
@@ -123,7 +123,7 @@ const char **gensec_security_oids(TALLOC_CTX *mem_ctx, const char *skip)
|
||||
*/
|
||||
static NTSTATUS gensec_start(TALLOC_CTX *mem_ctx, struct gensec_security **gensec_security)
|
||||
{
|
||||
(*gensec_security) = talloc_p(mem_ctx, struct gensec_security);
|
||||
(*gensec_security) = talloc(mem_ctx, struct gensec_security);
|
||||
if (!(*gensec_security)) {
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
@@ -155,7 +155,7 @@ NTSTATUS gensec_subcontext_start(TALLOC_CTX *mem_ctx,
|
||||
struct gensec_security *parent,
|
||||
struct gensec_security **gensec_security)
|
||||
{
|
||||
(*gensec_security) = talloc_p(mem_ctx, struct gensec_security);
|
||||
(*gensec_security) = talloc(mem_ctx, struct gensec_security);
|
||||
if (!(*gensec_security)) {
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user