summaryrefslogtreecommitdiffstats
path: root/source3/nmbd
Commit message (Collapse)AuthorAgeFilesLines
...
* r23015: Make message_(de)register static to messages.cVolker Lendecke2007-10-103-21/+45
| | | | (This used to be commit a8082a3c7c3d1e68c27fc3bf42f3d44402cc6f9f)
* r22911: Pass a messaging_context to message_send_allVolker Lendecke2007-10-101-2/+2
| | | | (This used to be commit cc92ce665dcfe9054d09429219883b18a4cab090)
* r22908: All callers of message_init now also call messaging_init. Unify those.Volker Lendecke2007-10-101-1/+0
| | | | (This used to be commit 330946ad2307ca34f0a8d068a0193fcb8a0d6036)
* r22902: Add an event_context and a messaging_context to nmbd. Not used yet.Volker Lendecke2007-10-102-8/+52
| | | | (This used to be commit 6d210fb8a13e93fe5b7bc160a343f74878dea727)
* r22761: This introduces lib/conn_tdb.c with two main functions: ↵Volker Lendecke2007-10-101-15/+1
| | | | | | | | | | connections_traverse and connections_forall. This centralizes all the routines that did individual tdb_open("connections.tdb") and direct tdb_traverse. Volker (This used to be commit e43e94cda1ad8876b3cb5d1129080b57fa6ec214)
* r22736: Start to merge the low-hanging fruit from the now 7000-line cluster ↵Volker Lendecke2007-10-103-5/+5
| | | | | | | | | | patch. This changes "struct process_id" to "struct server_id", keeping both is just too much hassle. No functional change (I hope ;-)) Volker (This used to be commit 0ad4b1226c9d91b72136310d3bbb640d2c5d67b8)
* r22417: Refactor the various daemon run-mode options to make the semanticsJames Peach2007-10-102-31/+32
| | | | | of the various flags explicit. (This used to be commit 19c929c6330a50f278ac322ac5fcb83d03734ea2)
* 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. (This used to be commit 2d80a96120a5fe2fe726f00746d36d85044c4bdb)
* r22157: Fix bug #3634 - stop nmbd segfaulting with bad interface line.Jeremy Allison2007-10-101-0/+7
| | | | | Jeremy. (This used to be commit c3e2207cb40386c565b23fcabc8c7384b10216de)
* r22045: As Volker noticed, skip_string's last argument isJeremy Allison2007-10-106-17/+17
| | | | | | redundent. Remove it. Jeremy. (This used to be commit 140881cfbb59ce4a699b5900efe02bf315be7bd5)
* 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. (This used to be commit d47af7c9263f519e7307859b6a696d854c5dfca3)
* r22018: fix compile errorHerb Lewis2007-10-101-3/+3
| | | | (This used to be commit a4c1c770a227390f745c9db07efe468bdcd31339)
* 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. (This used to be commit c3a565081d70b209a4f9e6e8f1859bf7194a5f74)
* r22009: change TDB_DATA from char * to unsigned char *Stefan Metzmacher2007-10-101-3/+3
| | | | | | | and fix all compiler warnings in the users metze (This used to be commit 3a28443079c141a6ce8182c65b56ca210e34f37f)
* 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 (This used to be commit fa322f0cc9c26a9537ba3f0a7d4e4a25941317e7)
* 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 (This used to be commit c8ae60ed65dcce9660ee39c75488f2838cf9a28b)
* r19626: Coalesce usage of DUMP_CORE. Fix formatting on chdir error messageJames Peach2007-10-101-2/+0
| | | | | in core dump path. (This used to be commit 9a51fba71c5fa7082c331e1a78a98638d9aa06cf)
* r18660: Fix build, one uuid->GUID was missed.Jim McDonough2007-10-101-1/+1
| | | | (This used to be commit f8ea2069d444a6630b61828999605a3ed011db02)
* 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 (This used to be commit 2f58645b7094e81dff3734f11aa183ea2ab53d2d)
* 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. (This used to be commit 1ec77c50118de808f710b17f878b1e80d4e351d5)
* r17807: Fix a file descriptor leak pointed out by John Malmberg. Thanks!Volker Lendecke2007-10-101-0/+1
| | | | | Volker (This used to be commit fac007ccbec75f5ee9ff2769d8add4d27e62167d)
* r17668: Fix the miscalculations in pushing announces. FixesJeremy Allison2007-10-101-6/+6
| | | | | | problems Kukks reported. Jeremy. (This used to be commit 426d722029b245e239f0ee39b6be249c59e1918c)
* r17626: Some C++ WarningsVolker Lendecke2007-10-101-1/+1
| | | | (This used to be commit 09e7c010f03ac3c621f7a7fad44685d278c1481a)
* r17571: Change the return code of cli_session_setup from BOOL to NTSTATUSVolker Lendecke2007-10-101-1/+2
| | | | | Volker (This used to be commit 94817a8ef53589011bc4ead4e17807a101acf5c9)
* 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. (This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
* 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. (This used to be commit b36b9befbbc4ac318168b7788d3722710ecbf10f)
* 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. (This used to be commit d354b430ff0473764db8ea492a68d10946dadc23)
* r16581: Fix Klocwork #2017. Possible null deref.Jeremy Allison2007-10-101-0/+5
| | | | | Jeremy. (This used to be commit 6967fd4cefa84a7b7b5e14467bfa8152907d55c9)
* r16579: Fix Klocwork #2016. Possible null deref.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit f6d5bae4a105eee1b1d5b1aaa70a675705345d9e)
* r16576: Fix Klocwork #2015. Possible null deref.Jeremy Allison2007-10-101-0/+5
| | | | | Jeremy. (This used to be commit 9cbfaf62a3c4bb7d2e594e412449506ab0af4063)
* r16313: Not a problem - but ensure Klocwork is quiet (#872).Jeremy Allison2007-10-101-2/+2
| | | | | Jeremy. (This used to be commit 22a345deed6caa5750e2bb233a20422ad7b90d94)
* r16230: Fix Klocwork #861 and others. localtime and asctimeJeremy Allison2007-10-102-2/+24
| | | | | | can return NULL. Ensure we check all returns correctly. Jeremy. (This used to be commit 6c61dc8ed6d84f310ef391fb7700e93ef42c4afc)
* r16213: Fix Klocwork #852. iface_n_ip can potentiallyJeremy Allison2007-10-102-2/+16
| | | | | | return NULL. Ensure we don't deref. Jeremy. (This used to be commit c2f0ea2ff2f6ad925cee9c85110c6ad828ffb7a9)
* r16019: This should not be a level zero message - it's harmlessJeremy Allison2007-10-101-1/+1
| | | | | | and can happen though misconfiguration. Jeremy. (This used to be commit 4b9cf399a691ba4a7392caca558d0e98b4d19104)
* 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. (This used to be commit e5787cf75b2e7d50f551f34f28d280c27b0aa134)
* r15483: Fix 'declaration after code' warnings.Volker Lendecke2007-10-101-3/+7
| | | | | Volker (This used to be commit 7729799be9984a02a2a309289067b7500696e657)
* 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. (This used to be commit ee750498812190edd3ec52ca3c750258f3b8a97a)
* 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. (This used to be commit b1bbe568313001f4b4e49382742e4b819c0a2b03)
* 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. (This used to be commit 56bc02d64498eb3faf89f0c5452b9299daea8e95)
* 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 (This used to be commit c3a9f30e2a12cc852c9fa3a7d161f5c6ee0694ce)
* r14007: Coverity bug CID #197. Don't compare against 0, weJeremy Allison2007-10-101-1/+1
| | | | | | mean the ttl instead. Jeremy. (This used to be commit ccb2a52e29de7e2847ccd93aa99236f63202a4af)
* 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. (This used to be commit d6d7a5ac62b6ee08e365c5982302b1d8dc69a78f)
* r13887: Fix coverity bug CID #94. mem leak on error codepath.Jeremy Allison2007-10-101-0/+2
| | | | | Jeremy. (This used to be commit dd47e0ef1175a57ec2e9b797ac942cb79f4a5d05)
* r13884: Fix coverity CID #95. Resource leak on error path.Jeremy Allison2007-10-101-0/+2
| | | | | Jeremy. (This used to be commit f4bf550b5757024b41062784b185b52a1a0e11f4)
* r13882: Fix coverity CID bug #96. Missing free on errorJeremy Allison2007-10-101-0/+1
| | | | | | exit path. Jeremy. (This used to be commit 95ef857c89a330ef4012ba3c10d2bbbbab112b34)
* r13880: Fix coverity bug CID #97, mem leak on error path.Jeremy Allison2007-10-101-4/+4
| | | | | Jeremy. (This used to be commit 0dc37dd2d85d59e7287cebcb7019194cf6754074)
* r13875: Fix coverity bug #148. Deref of rrec before NULL check.Jeremy Allison2007-10-101-2/+7
| | | | | Jeremy. (This used to be commit 0f1dffb2f2ce5ace1b3216f578ab115c976624c7)
* 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. (This used to be commit 2f6cf810eae124820a073258ffe62aace7a92d9c)
* 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. (This used to be commit b65be8874a2efe5a4b167448960a4fcf6bd995e2)
* r13510: plug memory leak in WINS server code.Gerald Carter2007-10-101-0/+5
| | | | (This used to be commit 381c327a65489bf8b0fd4935662ca1df6f9e1183)