index 23a0fdf01d4de95f7cbad5a2955112ea7668ee72..020d80beacb5f8401d26ec891a202cd2da226db1 100644 (file)
--- a/src/utils_format_json.c
+++ b/src/utils_format_json.c
if (meta_data_get_string (meta, key, &value) == 0)
{
char temp[512] = "";
- json_escape_string (temp, sizeof (temp), value);
+
+ status = json_escape_string (temp, sizeof (temp), value);
sfree (value);
+ if (status != 0)
+ return status;
+
BUFFER_ADD (",\"%s\":%s", key, temp);
}
}