Remove connection_struct->mem_ctx, connection_struct is its own parent
[samba.git] / source3 / smbd / nttrans.c
index ae7bd8b7b722a095d565ccd13b621a1e4a8723a1..ec4126c1f74bfaa0ef6e97a98a0f72cf0366bb6a 100644 (file)
@@ -2595,7 +2595,7 @@ void reply_nttrans(struct smb_request *req)
                return;
        }
 
-       if ((state = TALLOC_P(conn->mem_ctx, struct trans_state)) == NULL) {
+       if ((state = TALLOC_P(conn, struct trans_state)) == NULL) {
                reply_doserror(req, ERRSRV, ERRaccess);
                END_PROFILE(SMBnttrans);
                return;