Re: [PATCH RFC3.5.1 04/12] send-email: Verification for --smtp-server and --smpt-server-port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Apr 19, 2009 at 09:19, Michael Witten <mfwitten@xxxxxxxxx> wrote:
> +               ($smtp_server, my $port) = parse_server_URI $smtp_server
> +                       or die "--smtp-server: Not a valid server URI: '$smtp_server'\n";

Whoops! I used to have:

    my ($host, $port) = ...

but I tried to be clever and replaced it with the above.
Unfortunately, that means that an incorrect server 'URI' sets
$smtp_server to undef, which perl complains about when it interpolates
the die string.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]