diff options
author | Andreas Schneider <asn@samba.org> | 2010-08-18 12:08:47 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2010-08-18 12:08:47 +0200 |
commit | 937da4d14111e1cd32f514a9382291f12764c1c9 (patch) | |
tree | 0452c4382060ce788f11b916d64cb8930aa1ed55 | |
parent | 555b175212d5c7e5b8628d4d5e3cba4541037dbb (diff) | |
download | samba-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.c | 2 |
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", |