return a;
err:
- if (mime_atom != NULL) {
- g_free (mime_atom->str);
- g_slice_free1 (sizeof (*mime_atom), mime_atom);
- }
+ g_free (mime_atom->str);
+ g_slice_free1 (sizeof (*mime_atom), mime_atom);
return NULL;
}
return FALSE;
}
- for (i = 0; i < task->text_parts->len && res; i ++) {
+ for (i = 0; i < task->text_parts->len; i ++) {
p = g_ptr_array_index (task->text_parts, i);
if (!IS_PART_EMPTY (p) && IS_PART_HTML (p) && p->html) {
res = rspamd_html_tag_seen (p->html, arg->data);
}
+
+ if (res) {
+ break;
+ }
}
return res;
if (r && param_subtype) {
r = compare_len (part, min_len, max_len) &&
compare_subtype (task, ct, param_subtype);
+
+ return r;
}
}
else {