summaryrefslogtreecommitdiffstats
path: root/source/libsmb/samlogon_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/libsmb/samlogon_cache.c')
-rw-r--r--source/libsmb/samlogon_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/samlogon_cache.c b/source/libsmb/samlogon_cache.c
index 0105bc08c3a..086dd127a45 100644
--- a/source/libsmb/samlogon_cache.c
+++ b/source/libsmb/samlogon_cache.c
@@ -188,7 +188,7 @@ NET_USER_INFO_3* netsamlogon_cache_get( TALLOC_CTX *mem_ctx, const DOM_SID *user
if ( data.dptr ) {
- if ( (user = (NET_USER_INFO_3*)malloc(sizeof(NET_USER_INFO_3))) == NULL )
+ if ( (user = SMB_MALLOC_P(NET_USER_INFO_3)) == NULL )
return NULL;
prs_init( &ps, 0, mem_ctx, UNMARSHALL );