summaryrefslogtreecommitdiffstats
path: root/source/smbd/negprot.c
Commit message (Collapse)AuthorAgeFilesLines
* r24809: Consolidate the use of temporary talloc contexts.Volker Lendecke2007-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the two functions talloc_stackframe() and talloc_tos(). * When a new talloc stackframe is allocated with talloc_stackframe(), then * the TALLOC_CTX returned with talloc_tos() is reset to that new * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse * happens: The previous talloc_tos() is restored. * * This API is designed to be robust in the sense that if someone forgets to * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and * resets the talloc_tos(). The original motivation for this patch was to get rid of the sid_string_static & friends buffers. Explicitly passing talloc context everywhere clutters code too much for my taste, so an implicit talloc_tos() is introduced here. Many of these static buffers are replaced by a single static pointer. The intended use would thus be that low-level functions can rather freely push stuff to talloc_tos, the upper layers clean up by freeing the stackframe. The more of these stackframes are used and correctly freed the more exact the memory cleanup happens. This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and lp_talloc_ctx (did I forget any?) So, never do a tmp_ctx = talloc_init("foo"); anymore, instead, use tmp_ctx = talloc_stackframe() :-) Volker
* r24660: Merge the inbuf/outbuf changesVolker Lendecke2007-08-251-114/+183
|
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-07-101-2/+1
|
* r23780: Find and fix more GPL2 -> GPL3.Jeremy Allison2007-07-091-1/+1
| | | | Jeremy.
* r23511: Merge branches/SAMBA_3_0@23510James Peach2007-06-151-1/+1
| | | | | Tidy calls to smb_panic by removing trailing newlines. Print the failed expression in SMB_ASSERT.
* r23168: Move the lp_max_connections() into service.c.Volker Lendecke2007-05-271-1/+2
|
* r23167: Remove an unused parameterVolker Lendecke2007-05-271-1/+1
|
* r21858: Fix typo.Günther Deschner2007-03-161-1/+1
| | | | Guenther
* r21857: Stop pretending to be Vista in the %a macro towards Samba clients.Günther Deschner2007-03-161-1/+3
| | | | Guenther
* r21250: Partial fix for BUG 4093: Make %a expand to "Vista"Gerald Carter2007-02-081-8/+37
| | | | | | | | | | based on the flags2 values in the negprot request. This also includes some code for testing the dialect strings for "SMB 2.001" but this is unreliable as Vista only sends that in the 1st negprot and caches the fact that we don't support it. Restartnig the WOrkstation service on the client clears the cache.
* r20368: Fix valgrind report of uninitialized memory Jeremy Allison2006-12-271-1/+12
| | | | | | being returned (false positive). Up debug level on "open_directory" message. Jeremy.
* r20238: svn merge -r 20236:20237 branches/SAMBA_3_0/source .James Peach2006-12-181-3/+4
| | | | | | Replace exit_server with exit_server_cleanly where appropriate. All send_smb failures should be clean exits. All times when we exit as a matter of policy should also be clean exits.
* r19810: more merge work....does not compile currently. Working on smbd mergeGerald Carter2006-11-211-31/+15
|
* r16418: Pull in more Klocwork fixes (up to r16415)Gerald Carter2006-06-201-0/+1
|
* r13659: Pulling in what I think are the final code changes for 3.0.21cGerald Carter2006-02-231-4/+15
| | | | | | svn merge -r13639:13641 $SVNURL/branches/SAMBA_3_0 svn merge -r13645:13647 $SVNURL/branches/SAMBA_3_0 svn merge -r13656:13657 $SVNURL/branches/SAMBA_3_0
* r11590: syncing up for 3.0.21rc1Gerald Carter2005-11-091-8/+9
|
* r11118: syncing up some changez from 3.0 tree for the first 3.0.21 preview ↵Gerald Carter2005-10-171-13/+21
| | | | release
* r7791: sync with SAMBA_3_0 branch as of r7789. Geting ready for 3.0.20pre1Gerald Carter2005-06-211-5/+8
|
* r6369: update release notesGerald Carter2005-04-181-1/+2
| | | | | sync with SAMBA_3_0 (r6365). Getting ready for 3.0.15pre2
* r6334: revert 3.0.15pre1 changes. roll back to 3.0.14.Gerald Carter2005-04-141-2/+1
| | | | | | | Add in jra fix for bad SMB_ASSERT. Redefine SMB_ASSERT to a single DEBUG() when not using --with-developer
* r6303: Setting up for 3.0.15pre1Gerald Carter2005-04-121-1/+2
| | | | current as of r6296
* r4348: syncing up for 3.0.11pre1Gerald Carter2004-12-231-1/+7
|
* r2565: syncing up for 3.0.8pre1Gerald Carter2004-09-231-0/+4
|
* r1383: sync from 3.0 treeGerald Carter2004-07-071-3/+16
|
* r15: syncing for 3.0.3pre2Gerald Carter2004-04-041-5/+1
|
* r2: import HEAD into svn+ssh://svn.samba.org/home/svn/samba/trunkCVS Import User2004-04-041-0/+550
metze