If this function fail we are better off abandoning the whole quest, continueing
here may end us up in an infinite loop where the fucntion keeps failing w/o
changing attr.more
Thanks to Alejandro Perez for finding this flaw.
Signed-off-by: Simo Sorce <simo@redhat.com>
attr.value = empty_buffer;
attr.display_value = empty_buffer;
- if (!mag_get_name_attr(req, name, &attr)) continue;
+ if (!mag_get_name_attr(req, name, &attr)) break;
if (cfg->name_attributes->output_json) {
mag_add_json_name_attr(req, i == 0, &attr, &json);