summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-18 13:20:50 +0200
committerVolker Lendecke <vl@samba.org>2010-08-18 13:33:24 +0200
commitb9353c65c0662895c8e87f3d1c66574444ccfa12 (patch)
treecc089931ac6ce5572bd00695125e9bf15d43ff7f /source3/lib
parent937da4d14111e1cd32f514a9382291f12764c1c9 (diff)
downloadsamba-b9353c65c0662895c8e87f3d1c66574444ccfa12.tar.gz
samba-b9353c65c0662895c8e87f3d1c66574444ccfa12.tar.bz2
samba-b9353c65c0662895c8e87f3d1c66574444ccfa12.zip
s3: Fix serverid_register_msg_flags
Thanks, Andreas, for pointing this out! (How drunk have I been?...)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/serverid.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c
index 6adad7e6dd..0fac3759e7 100644
--- a/source3/lib/serverid.c
+++ b/source3/lib/serverid.c
@@ -124,7 +124,7 @@ bool serverid_register_msg_flags(const struct server_id id, bool do_reg,
struct serverid_key key;
struct serverid_data *data;
struct db_record *rec;
- TDB_DATA tdbkey, tdbdata;
+ TDB_DATA tdbkey;
NTSTATUS status;
bool ret = false;
@@ -157,9 +157,7 @@ bool serverid_register_msg_flags(const struct server_id id, bool do_reg,
data->msg_flags &= ~msg_flags;
}
- ZERO_STRUCT(tdbdata);
-
- status = rec->store(rec, tdbdata, 0);
+ status = rec->store(rec, rec->value, 0);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(1, ("Storing serverid.tdb record failed: %s\n",
nt_errstr(status)));