summaryrefslogtreecommitdiffstats
path: root/source/nmbd
Commit message (Collapse)AuthorAgeFilesLines
* r22417: Refactor the various daemon run-mode options to make the semanticsJames Peach2007-10-102-31/+32
| | | | of the various flags explicit.
* r22391: Looks bigger than it is. Make "inbuf" availableJeremy Allison2007-10-101-1/+1
| | | | | | | to all callers of smb_setlen (via set_message() calls). This will allow the server to reflect back the correct encryption context. Jeremy.
* r22157: Fix bug #3634 - stop nmbd segfaulting with bad interface line.Jeremy Allison2007-10-101-0/+7
| | | | Jeremy.
* r22045: As Volker noticed, skip_string's last argument isJeremy Allison2007-10-106-17/+17
| | | | | redundent. Remove it. Jeremy.
* r22042: Try and clean up my own mess using the API VolkerJeremy Allison2007-10-102-2/+2
| | | | | | | | | | | | | | suggested. I now use : BOOL is_offset_safe(const char *buf_base, size_t buf_len, char *ptr, size_t off) char *get_safe_ptr(const char *buf_base, size_t buf_len, char *ptr, size_t off) char *get_safe_str_ptr(const char *buf_base, size_t buf_len, char *ptr, size_t off) int get_safe_SVAL(const char *buf_base, size_t buf_len, char *ptr, size_t off, int failval) int get_safe_IVAL(const char *buf_base, size_t buf_len, char *ptr, size_t off, int failval) Volker, please criticize and comment. Thanks, Jeremy.
* r22018: fix compile errorHerb Lewis2007-10-101-3/+3
|
* r22014: Make us pass RANDOMIPC test again :-(. This is an ugly check-in,Jeremy Allison2007-10-106-31/+37
| | | | | but I've no option. Jeremy.
* r22009: change TDB_DATA from char * to unsigned char *Stefan Metzmacher2007-10-101-3/+3
| | | | | | and fix all compiler warnings in the users metze
* r22001: change prototype of dump_data(), so that it takes unsigned char * now,Stefan Metzmacher2007-10-101-3/+3
| | | | | | | | which matches what samba4 has. also fix all the callers to prevent compiler warnings metze
* r21064: The core of this patch isVolker Lendecke2007-10-103-11/+11
| | | | | | | | | | | | | | | | | | | | | | void message_register(int msg_type, void (*fn)(int msg_type, struct process_id pid, - void *buf, size_t len)) + void *buf, size_t len, + void *private_data), + void *private_data) { struct dispatch_fns *dfn; So this adds a (so far unused) private pointer that is passed from message_register to the message handler. A prerequisite to implement a tiny samba4-API compatible wrapper around our messaging system. That itself is necessary for the Samba4 notify system. Yes, I know, I could import the whole Samba4 messaging system, but I want to do it step by step and I think getting notify in is more important in this step. Volker
* r19626: Coalesce usage of DUMP_CORE. Fix formatting on chdir error messageJames Peach2007-10-101-2/+0
| | | | in core dump path.
* r18660: Fix build, one uuid->GUID was missed.Jim McDonough2007-10-101-1/+1
|
* r18605: sync dlinklist.h with samba4, that means DLIST_ADD_END()Stefan Metzmacher2007-10-101-2/+1
| | | | | | | and DLIST_DEMOTE() now take the type of the tmp pointer not the tmp pointer itself anymore. metze
* r17864: Fix possible null deref if client doesn't give usJeremy Allison2007-10-101-1/+9
| | | | | an answer record. Found by the Stanford checker. Jeremy.
* r17807: Fix a file descriptor leak pointed out by John Malmberg. Thanks!Volker Lendecke2007-10-101-0/+1
| | | | Volker
* r17668: Fix the miscalculations in pushing announces. FixesJeremy Allison2007-10-101-6/+6
| | | | | problems Kukks reported. Jeremy.
* r17626: Some C++ WarningsVolker Lendecke2007-10-101-1/+1
|
* r17571: Change the return code of cli_session_setup from BOOL to NTSTATUSVolker Lendecke2007-10-101-1/+2
| | | | Volker
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-14/+19
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r16665: Fix a couple of bugs I discovered now I've lookedJeremy Allison2007-10-102-11/+33
| | | | | | | | | | | closer at the wins server code. Firstly, it needs to do the searches on the SELF_NAMES correctly, secondly it needs to flush the in-memory cache out before returning the 1b names - else it might get duplicates returned if many 1b queries are done in quick succession. Jerry, I hate to say this but you might want to consider this for 3.0.23.... Jeremy.
* r16642: Fix show-stopper bug #3876. Double-free in winsJeremy Allison2007-10-101-1/+1
| | | | | server code. Jerry please merge for 3.0.23. Jeremy.
* r16581: Fix Klocwork #2017. Possible null deref.Jeremy Allison2007-10-101-0/+5
| | | | Jeremy.
* r16579: Fix Klocwork #2016. Possible null deref.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r16576: Fix Klocwork #2015. Possible null deref.Jeremy Allison2007-10-101-0/+5
| | | | Jeremy.
* r16313: Not a problem - but ensure Klocwork is quiet (#872).Jeremy Allison2007-10-101-2/+2
| | | | Jeremy.
* r16230: Fix Klocwork #861 and others. localtime and asctimeJeremy Allison2007-10-102-2/+24
| | | | | can return NULL. Ensure we check all returns correctly. Jeremy.
* r16213: Fix Klocwork #852. iface_n_ip can potentiallyJeremy Allison2007-10-102-2/+16
| | | | | return NULL. Ensure we don't deref. Jeremy.
* r16019: This should not be a level zero message - it's harmlessJeremy Allison2007-10-101-1/+1
| | | | | and can happen though misconfiguration. Jeremy.
* r15700: Make nmbd udp sockets non-blocking to prevent problemJeremy Allison2007-10-105-8/+8
| | | | | | with select returning true but no data being available. Fix for bug #3779. Jeremy.
* r15483: Fix 'declaration after code' warnings.Volker Lendecke2007-10-101-3/+7
| | | | Volker
* r15450: Change profiling data macros to use stack variables rather thanJames Peach2007-10-101-2/+2
| | | | | globals. This catches mismatched start/end calls and removes the need for special nested profiling calls.
* r15012: Fix bug #2715. Fix suggested by ISHIKAWA Tomonori <toishika@fsi.co.jp>Jeremy Allison2007-10-101-2/+0
| | | | | No need to null terminate early, pull_ascii_fstring will do this. Jeremy.
* r14898: This change is an attempt to improve the quality of the information thatJames Peach2007-10-101-40/+1
| | | | | | | | | | | | | | | | | is produced when a process exits abnormally. First, we coalesce the core dumping code so that we greatly improve our odds of being able to produce a core file, even in the case of a memory fault. I've removed duplicates of dump_core() and split it in two to reduce the amount of work needed to actually do the dump. Second, we refactor the exit_server code path to always log an explanation and a stack trace. My goal is to always produce enough log information for us to be able to explain any server exit, though there is a risk that this could produce too much log information on a flaky network. Finally, smbcontrol has gained a smbd fault injection operation to test the changes above. This is only enabled for developer builds.
* r14618: add --no-process-group to all server programmsStefan Metzmacher2007-10-101-2/+4
| | | | | | | | | | | to make the following possible: timelimit 20000 bin/nmbd -F -S --no-process-group timelimit 20000 bin/smbd -F -S --no-process-group this is needed to 'make test' working without losing child processes metze
* r14007: Coverity bug CID #197. Don't compare against 0, weJeremy Allison2007-10-101-1/+1
| | | | | mean the ttl instead. Jeremy.
* r13892: Doh ! My bugfix had a bug :-). Spotted by Willi Mann <willi@wm1.at>,Jeremy Allison2007-10-101-2/+2
| | | | | if rrec can be null make sure we *never* deref it. Jeremy.
* r13887: Fix coverity bug CID #94. mem leak on error codepath.Jeremy Allison2007-10-101-0/+2
| | | | Jeremy.
* r13884: Fix coverity CID #95. Resource leak on error path.Jeremy Allison2007-10-101-0/+2
| | | | Jeremy.
* r13882: Fix coverity CID bug #96. Missing free on errorJeremy Allison2007-10-101-0/+1
| | | | | exit path. Jeremy.
* r13880: Fix coverity bug CID #97, mem leak on error path.Jeremy Allison2007-10-101-4/+4
| | | | Jeremy.
* r13875: Fix coverity bug #148. Deref of rrec before NULL check.Jeremy Allison2007-10-101-2/+7
| | | | Jeremy.
* r13873: I think this is the longstanding wins server crash bug, notJeremy Allison2007-10-101-17/+16
| | | | | | part of the changes I made but something that's been there a while.... Coverity bugid #41. Jeremy.
* r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()Gerald Carter2007-10-101-1/+1
| | | | macro which sets the freed pointer to NULL.
* r13510: plug memory leak in WINS server code.Gerald Carter2007-10-101-0/+5
|
* r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500Derrell Lipman2007-10-101-1/+1
| | | | | | | | | | | | lp_load() could not be called multiple times to modify parameter settings based on reading from multiple configuration settings. Each time, it initialized all of the settings back to their defaults before reading the specified configuration file. This patch adds a parameter to lp_load() specifying whether the settings should be initialized. It does, however, still force the settings to be initialized the first time, even if the request was to not initialize them. (Not doing so could wreak havoc due to uninitialized values.)
* r13081: correct fix for the segv in nmbd caused by a double free on namerec.Gerald Carter2007-10-102-8/+8
|
* r12967: BUG 1061: don't corrupt the file name when reading an lmhosts file ↵Gerald Carter2007-10-101-3/+4
| | | | (-H) in nmbd. Patch from Andrew Esh <Andrew_Esh@adaptec.com>
* r12946: fix a segfault in nmbd when 'wins support = yes' caused by double freeGerald Carter2007-10-101-3/+5
|
* r12564: Ensure load_case_tables is always done first.Jeremy Allison2007-10-101-0/+2
| | | | Jeremy.
* r12214: Fix compile if SYNC_DNS is set.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.