Permalink
Browse files

Fix: crmd: Suppress secondary errors when no metadata is found

  • Loading branch information...
1 parent 65ff64c commit 44d3e130fd2069fca6bb689988ed57d5b65f2782 @beekhof committed Mar 19, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 crmd/lrm.c
View
@@ -519,6 +519,10 @@ get_rsc_restart_list(lrmd_rsc_info_t * rsc, lrmd_event_data_t * op)
key = NULL;
reload->metadata = get_rsc_metadata(rsc->type, rsc->class, provider);
+ if(reload->metadata == NULL) {
+ goto cleanup;
+ }
+
metadata = string2xml(reload->metadata);
if (metadata == NULL) {
crm_err("Metadata for %s::%s:%s is not valid XML",

0 comments on commit 44d3e13

Please sign in to comment.