From 74d97d312eb5574ae20ebab7ec72c591dd98b0a0 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Wed, 27 Jun 2012 20:17:00 -0400 Subject: [PATCH] qmail_deliverable: test variable if defined before accessing --- plugins/qmail_deliverable | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/qmail_deliverable b/plugins/qmail_deliverable index 0704b06..b22d221 100755 --- a/plugins/qmail_deliverable +++ b/plugins/qmail_deliverable @@ -77,7 +77,7 @@ sub register { $self->log(LOGWARN, "Odd number of arguments, using default config"); } else { my %args = @args; - if ($args{server} =~ /^smtproutes:/) { + if ($args{server} && $args{server} =~ /^smtproutes:/) { my ($fallback, $port) = $args{server} =~ /:(?:(.*?):?)(\d+)/;