public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: Christine Caulfield <chrissie@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: cluster: master - cman: fix crash when reloading config. Date: Thu, 19 Mar 2009 15:47:00 -0000 [thread overview] Message-ID: <20090319154643.EF5C5120272@lists.fedorahosted.org> (raw) Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=6f49af8ab3dc3b48d301011dcaa8fea43ef61f07 Commit: 6f49af8ab3dc3b48d301011dcaa8fea43ef61f07 Parent: df38ed064a2b0cc082024c6e85c75ff0c0f30d5f Author: Christine Caulfield <ccaulfie@redhat.com> AuthorDate: Thu Mar 19 15:46:05 2009 +0000 Committer: Christine Caulfield <ccaulfie@redhat.com> CommitterDate: Thu Mar 19 15:46:05 2009 +0000 cman: fix crash when reloading config. Don't pass an unitialised handle into the objdb Signed-off-by: Christine Caulfield <ccaulfie@redhat.com> --- cman/config/cman-preconfig.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cman/config/cman-preconfig.c b/cman/config/cman-preconfig.c index 0af128b..93e0c42 100644 --- a/cman/config/cman-preconfig.c +++ b/cman/config/cman-preconfig.c @@ -988,7 +988,7 @@ static int copy_config_tree(struct objdb_iface_ver0 *objdb, hdb_handle_t source_ objdb->object_name_get(source_object, object_name, &object_name_len); objdb->object_find_create(target_parent_object, object_name, strlen(object_name), &find_handle); - if (always_create || objdb->object_find_next(find_handle, &object_handle)) + if (always_create || objdb->object_find_next(find_handle, &new_object)) objdb->object_create(target_parent_object, &new_object, object_name, object_name_len); objdb->object_find_destroy(find_handle);
reply other threads:[~2009-03-19 15:47 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090319154643.EF5C5120272@lists.fedorahosted.org \ --to=chrissie@fedoraproject.org \ --cc=cluster-cvs-relay@redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).