[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: anyone seen this kind of router core dump?



The router will dump core if there are no arguments
to the envelope keywords "fullname" or "loginname".

This patch to zmailer2.2 causes the router to ignore such
envelope lines.  The change is to function mkSender() in router/rfc822.c.

Ken



*** /tmp/,RCSt1a28038   Tue Aug  2 17:51:47 1994
--- rfc822.c    Tue Aug  2 17:51:44 1994
***************
*** 669,675 ****
        ppp = &sh->h_contents.a->a_tokens;
        didbracket = 0;
        FindEnvelope(eFullname);
!       if (h != NULL) {
                sh->h_contents.a->a_tokens = h->h_contents.a->a_tokens;
                /* 'Full Name' */
                for (pp = h->h_contents.a->a_tokens;
--- 669,675 ----
        ppp = &sh->h_contents.a->a_tokens;
        didbracket = 0;
        FindEnvelope(eFullname);
!       if (h != NULL && h->h_contents.a != NULL) {
                sh->h_contents.a->a_tokens = h->h_contents.a->a_tokens;
                /* 'Full Name' */
                for (pp = h->h_contents.a->a_tokens;
***************
*** 700,705 ****
--- 700,707 ----
                pp->p_type = aSpecial;
        }
        FindEnvelope(ePrettyLogin);
+       if (h != NULL && h->h_contents.a == NULL)
+               h = NULL;
        if (h != NULL && !flag && !e->e_trusted) {
                /* make sure the pretty login is valid. see thesender() */
                l = router(h->h_contents.a, e->e_statbuf.st_uid, "sender");
~