s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()
[samba.git] / source3 / smbd / session.c
index 1b391f3b8be1259d33ed49a8ba0dcd576779d6a6..12d4818e90ca8c548c5e2b5572911ea459e1fe82 100644 (file)
 */
 
 #include "includes.h"
+#include "smbd/smbd.h"
 #include "smbd/globals.h"
 #include "dbwrap.h"
 #include "session.h"
+#include "auth.h"
 
 /********************************************************************
  called when a session is created
@@ -229,7 +231,7 @@ static int gather_sessioninfo(const char *key, struct sessionid *session,
 {
        struct session_list *sesslist = (struct session_list *)private_data;
 
-       sesslist->sessions = TALLOC_REALLOC_ARRAY(
+       sesslist->sessions = talloc_realloc(
                sesslist->mem_ctx, sesslist->sessions, struct sessionid,
                sesslist->count+1);