diff options
author | Jeremy Allison <jra@samba.org> | 2000-12-14 21:47:54 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-12-14 21:47:54 +0000 |
commit | 8611d9f1607136af08a3508d6b95fa222be49435 (patch) | |
tree | 49fdad6afb114f95e40adf97aedeb37cc6e3a77f /source/lib/messages.c | |
parent | 27158b5f85e41cb70edb3521bb6ffa0502fa7077 (diff) | |
download | samba-8611d9f1607136af08a3508d6b95fa222be49435.tar.gz samba-8611d9f1607136af08a3508d6b95fa222be49435.tar.xz samba-8611d9f1607136af08a3508d6b95fa222be49435.zip |
Raft of fixes - many of these will be merged into HEAD/appliance-head.
Fixed many memory leaks in new parse_lsa.c code (TIM - ALWAYS USE INSURE !!!!).
Fixed smbcacls leaks.
Jeremy.
Diffstat (limited to 'source/lib/messages.c')
-rw-r--r-- | source/lib/messages.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/source/lib/messages.c b/source/lib/messages.c index e5aafcb6461..d46ad74553e 100644 --- a/source/lib/messages.c +++ b/source/lib/messages.c @@ -384,22 +384,13 @@ this is a useful function for sending messages to all smbd processes. It isn't very efficient, but should be OK for the sorts of applications that use it. When we need efficient broadcast we can add it. ****************************************************************************/ -BOOL message_send_all(int msg_type, void *buf, size_t len, BOOL duplicates_allowed) +BOOL message_send_all(TDB_CONTEXT *conn_tdb, int msg_type, void *buf, size_t len, BOOL duplicates_allowed) { - TDB_CONTEXT *the_tdb; - - the_tdb = tdb_open(lock_path("connections.tdb"), 0, 0, O_RDONLY, 0); - if (!the_tdb) { - DEBUG(2,("Failed to open connections database in message_send_all\n")); - return False; - } - msg_all.msg_type = msg_type; msg_all.buf = buf; msg_all.len = len; msg_all.duplicates = duplicates_allowed; - tdb_traverse(the_tdb, traverse_fn, NULL); - tdb_close(the_tdb); + tdb_traverse(conn_tdb, traverse_fn, NULL); return True; } |