[1378] in Moira
reject addresses ending in @
daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Sun Feb 20 21:28:47 2000
Message-Id: <200002210228.VAA27222@mary-kay-commandos.mit.edu>
To: moiradev@MIT.EDU
Date: Sun, 20 Feb 2000 21:28:43 -0500
From: Garry Zacheiss <zacheiss@MIT.EDU>
This fixes the second part of the first bug I reported last
week.
Garry
Index: pobox.c
===================================================================
RCS file: /afs/athena.mit.edu/astaff/project/moiradev/repository//moira/clients/lib/pobox.c,v
retrieving revision 1.1
diff -c -r1.1 pobox.c
*** pobox.c 1999/05/13 18:52:28 1.1
--- pobox.c 2000/02/21 01:44:01
***************
*** 56,62 ****
goto cleanup;
}
! machine = canonicalize_hostname(strdup(m));
switch (potype(machine))
{
case POTYPE_POP:
--- 56,72 ----
goto cleanup;
}
! if (strlen(m) > 0)
! {
! machine = canonicalize_hostname(strdup(m));
! }
! else
! {
! com_err(whoami, 0, "The address \"%s\" is invalid.", address);
! status = MRCL_REJECT;
! goto cleanup;
! }
!
switch (potype(machine))
{
case POTYPE_POP: