]> andersk Git - moira.git/commitdiff
Reject addresses without a hostname.
authorzacheiss <zacheiss>
Mon, 21 Feb 2000 21:16:32 +0000 (21:16 +0000)
committerzacheiss <zacheiss>
Mon, 21 Feb 2000 21:16:32 +0000 (21:16 +0000)
clients/lib/pobox.c

index 9d715d8cc457a6add71d3c2f39473f0eba1113b6..873900fa7aee54e7d73684c8e54307ff67c8104c 100644 (file)
@@ -56,7 +56,17 @@ int mrcl_validate_pobox_smtp(char *user, char *address, char **ret)
          goto cleanup;
        }
 
-      machine = canonicalize_hostname(strdup(m));
+      if (strlen(m) > 0)
+       {
+         machine = canonicalize_hostname(strdup(m));
+       }
+      else
+       {
+         com_err(whoami, 0, "No hostname in address \"%s\".", address);
+         status = MRCL_REJECT;
+         goto cleanup;
+       }
+      
       switch (potype(machine))
        {
        case POTYPE_POP:
This page took 0.05947 seconds and 5 git commands to generate.