summaryrefslogtreecommitdiffstats
path: root/source/libsmb/namequery.c
Commit message (Collapse)AuthorAgeFilesLines
* r21585: Start syncing the monster that will become 3.0.25pre1Gerald Carter2007-02-281-35/+141
| | | | | | | | Still todo: * release notes * few minor outstanding patches * additional idmap man pages
* r19499: sync up changes for 3.0.23dGerald Carter2006-10-261-1/+1
|
* r17935: grab jeremy's memory leak fix and update the release notesGerald Carter2006-08-301-2/+3
|
* r17912: * mssed DNS SRV fix Gerald Carter2006-08-291-78/+104
| | | | | | * internal_resolve_name() fix * time fixes * NULL deref fixes
* r17143: svn merge -r17091:17138 ../SAMBA_3_0_23/Gerald Carter2006-07-191-11/+9
|
* r15837: starting sync up for 3.0.23rc1 (in sync with SAMBA_3_0 r15822)Gerald Carter2006-05-231-51/+49
|
* r13987: Fix Coverity bug # 74. This tool is good...Volker Lendecke2006-03-071-0/+1
| | | | | | Thanks, Volker
* r13915: Fixed a very interesting class of realloc() bugs found by Coverity.Jeremy Allison2006-03-071-14/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | realloc can return NULL in one of two cases - (1) the realloc failed, (2) realloc succeeded but the new size requested was zero, in which case this is identical to a free() call. The error paths dealing with these two cases should be different, but mostly weren't. Secondly the standard idiom for dealing with realloc when you know the new size is non-zero is the following : tmp = realloc(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } However, there were *many* *many* places in Samba where we were using the old (broken) idiom of : p = realloc(p, size) if (!p) { return error; } which will leak the memory pointed to by p on realloc fail. This commit (hopefully) fixes all these cases by moving to a standard idiom of : p = SMB_REALLOC(p, size) if (!p) { return error; } Where if the realloc returns null due to the realloc failing or size == 0 we *guarentee* that the storage pointed to by p has been freed. This allows me to remove a lot of code that was dealing with the standard (more verbose) method that required a tmp pointer. This is almost always what you want. When a realloc fails you never usually want the old memory, you want to free it and get into your error processing asap. For the 11 remaining cases where we really do need to keep the old pointer I have invented the new macro SMB_REALLOC_KEEP_OLD_ON_ERROR, which can be used as follows : tmp = SMB_REALLOC_KEEP_OLD_ON_ERROR(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } SMB_REALLOC_KEEP_OLD_ON_ERROR guarentees never to free the pointer p, even on size == 0 or realloc fail. All this is done by a hidden extra argument to Realloc(), BOOL free_old_on_error which is set appropriately by the SMB_REALLOC and SMB_REALLOC_KEEP_OLD_ON_ERROR macros (and their array counterparts). It remains to be seen what this will do to our Coverity bug count :-). Jeremy.
* r13893: Fix for Coverity issue CID #164. The first one that I don'tJeremy Allison2006-03-061-0/+2
| | | | | think is a direct bug, but some code that needs clarification :-). Jeremy.
* r13889: Fix resource leak on error path. Coverity bug CID #73.Jeremy Allison2006-03-061-0/+1
| | | | Jeremy.
* r13322: Fix warning time_t != int.Jeremy Allison2006-02-031-2/+2
| | | | Jeremy.
* r13310: first round of server affinity patches for winbindd & net ads joinGerald Carter2006-02-031-113/+210
|
* r7882: Looks like a large patch - but what it actually does is make SambaJeremy Allison2005-06-241-6/+6
| | | | | | safe for using our headers and linking with C++ modules. Stops us from using C++ reserved keywords in our code. Jeremy
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2004-12-071-11/+10
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r3843: If a connection to a DC is requested, open connections ↵Volker Lendecke2004-11-181-3/+3
| | | | | | | | simultaeneously to all DCs found. The first one to reply wins. Volker
* r3264: fix lmhosts lookup so that we don't say we found something when we ↵Gerald Carter2004-10-261-24/+29
| | | | really didn't
* r3143: Allow for multiple DC's to be named as #1c names in lmhosts.Volker Lendecke2004-10-231-13/+26
| | | | Volker
* r2770: oops; internal_resolve_name() should stay static in 3.0Gerald Carter2004-10-011-1/+1
|
* r2768: BUG 1519: save the hostname used in the open_printer_ex() for later ↵Gerald Carter2004-10-011-1/+1
| | | | reuse when filling in the spolss replies (also gets rid of get_called_name()
* r1326: Modification to get_dc_list to check negative cache. From "Joe ↵Jeremy Allison2004-07-021-188/+203
| | | | | | Meadows" <jameadows@webopolis.com>. Jeremy.
* r248: Add support for printing out the MAC address on nmblookup.Richard Sharpe2004-04-161-4/+11
|
* r2: import HEAD into svn+ssh://svn.samba.org/home/svn/samba/trunkCVS Import User2004-04-041-0/+1406
metze