r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation
[samba.git] / source3 / libsmb / conncache.c
index 15cc75b129e6b64019b894ef06834da22f6ab2ee..fe863db422afa18c5c07dbd52c6d387c959d969e 100644 (file)
@@ -115,8 +115,7 @@ void add_failed_connection_entry(const char *domain, const char *server, NTSTATU
 
        /* Create negative lookup cache entry for this domain and controller */
 
-       if ( !(fcc = (struct failed_connection_cache *)malloc(sizeof(struct failed_connection_cache))) ) 
-       {
+       if ( !(fcc = SMB_MALLOC_P(struct failed_connection_cache)) ) {
                DEBUG(0, ("malloc failed in add_failed_connection_entry!\n"));
                return;
        }