summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-08-18 12:08:47 +0200
committerAndreas Schneider <asn@samba.org>2010-08-18 12:08:47 +0200
commit937da4d14111e1cd32f514a9382291f12764c1c9 (patch)
tree0452c4382060ce788f11b916d64cb8930aa1ed55
parent555b175212d5c7e5b8628d4d5e3cba4541037dbb (diff)
downloadsamba-937da4d14111e1cd32f514a9382291f12764c1c9.tar.gz
samba-937da4d14111e1cd32f514a9382291f12764c1c9.tar.bz2
samba-937da4d14111e1cd32f514a9382291f12764c1c9.zip
s3-lib: Fixed a possible crash bug.
Volker please check!
-rw-r--r--source3/lib/serverid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c
index 5523eca690..6adad7e6dd 100644
--- a/source3/lib/serverid.c
+++ b/source3/lib/serverid.c
@@ -157,6 +157,8 @@ 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);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(1, ("Storing serverid.tdb record failed: %s\n",