diff options
Diffstat (limited to 'source3/smbd/connection.c')
-rw-r--r-- | source3/smbd/connection.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c index e2b01d0579..fe1fcdbdb8 100644 --- a/source3/smbd/connection.c +++ b/source3/smbd/connection.c @@ -170,47 +170,3 @@ bool claim_connection(connection_struct *conn, const char *name, return True; } - -bool register_message_flags(bool doreg, uint32 msg_flags) -{ - struct db_record *rec; - struct connections_data *pcrec; - NTSTATUS status; - - DEBUG(10,("register_message_flags: %s flags 0x%x\n", - doreg ? "adding" : "removing", - (unsigned int)msg_flags )); - - if (!(rec = connections_fetch_entry(NULL, NULL, ""))) { - DEBUG(0, ("connections_fetch_entry failed\n")); - return False; - } - - if (rec->value.dsize != sizeof(struct connections_data)) { - DEBUG(0,("register_message_flags: Got wrong record size\n")); - TALLOC_FREE(rec); - return False; - } - - pcrec = (struct connections_data *)rec->value.dptr; - if (doreg) - pcrec->bcast_msg_flags |= msg_flags; - else - pcrec->bcast_msg_flags &= ~msg_flags; - - status = rec->store(rec, rec->value, TDB_REPLACE); - - if (!NT_STATUS_IS_OK(status)) { - DEBUG(0,("register_message_flags: tdb_store failed: %s.\n", - nt_errstr(status))); - TALLOC_FREE(rec); - return False; - } - - DEBUG(10,("register_message_flags: new flags 0x%x\n", - (unsigned int)pcrec->bcast_msg_flags )); - - TALLOC_FREE(rec); - - return True; -} |