summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/nsswitch/winbind_nss_solaris.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/nsswitch/winbind_nss_solaris.c b/source3/nsswitch/winbind_nss_solaris.c
index b94b444fb4..04f464a798 100644
--- a/source3/nsswitch/winbind_nss_solaris.c
+++ b/source3/nsswitch/winbind_nss_solaris.c
@@ -185,7 +185,7 @@ _nss_winbind_passwd_constr (const char* db_name,
{
nss_backend_t *be;
- if(!(be = (nss_backend_t*) malloc(sizeof(nss_backend_t))) )
+ if(!(be = SMB_MALLOC_P(nss_backend_t)) )
return NULL;
be->ops = passwd_ops;
@@ -329,7 +329,7 @@ _nss_winbind_group_constr (const char* db_name,
{
nss_backend_t* be;
- if(!(be = (nss_backend_t*) malloc(sizeof(nss_backend_t))) )
+ if(!(be = SMB_MALLOC_P(nss_backend_t)) )
return NULL;
be->ops = group_ops;
@@ -580,7 +580,7 @@ _nss_winbind_common_constr (nss_backend_op_t ops[], int n_ops)
{
nss_backend_t* be;
- if(!(be = (nss_backend_t*) malloc(sizeof(nss_backend_t))) )
+ if(!(be = SMB_MALLOC_P(nss_backend_t)) )
return NULL;
be->ops = ops;