diff --git a/src/daemon/meta_data.c b/src/daemon/meta_data.c
index 4e46ed53355ff30346a239d3d8bcb3d3c5511e34..e1d0ec5b71f17a9a284b1a37745416accece939a 100644 (file)
--- a/src/daemon/meta_data.c
+++ b/src/daemon/meta_data.c
return (NULL);
copy = md_entry_alloc (orig->key);
return (NULL);
copy = md_entry_alloc (orig->key);
+ if (copy == NULL)
+ return (NULL);
copy->type = orig->type;
if (copy->type == MD_TYPE_STRING)
copy->value.mv_string = strdup (orig->value.mv_string);
copy->type = orig->type;
if (copy->type == MD_TYPE_STRING)
copy->value.mv_string = strdup (orig->value.mv_string);