]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
listcontrol: reduce the number of branches by 1
authorBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 12 Apr 2023 12:46:15 +0000 (14:46 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 12 Apr 2023 12:46:15 +0000 (14:46 +0200)
src/listcontrol.c

index fa01058a3fabb1f462dee6f9818e33ccd6eb47f9..a1f03d2e9d2ed33a993beab7a24e198bd8fd7f36 100644 (file)
@@ -657,7 +657,7 @@ permit:
                                        log_oper(ml->fd, OPLOGFNAME,
                                                        "%s requested sub list",
                                        tll_front(*fromemails));
-                                       owner = it->item;
+                                       owner = tll_front(*fromemails);
                                        break;
                                }
                        }
@@ -668,9 +668,8 @@ permit:
                                " list from a non-owner address."
                                " Ignoring mail");
                        return -1;
-               } else {
-                       send_list(ml, owner);
                }
+               send_list(ml, owner);
                if (owners != NULL)
                        tll_free_and_free(*owners, free);
                free(owners);