summaryrefslogtreecommitdiffstats
path: root/lib/ASM/Util.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ASM/Util.pm')
-rw-r--r--lib/ASM/Util.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ASM/Util.pm b/lib/ASM/Util.pm
index 7b910a1..e5ec1d1 100644
--- a/lib/ASM/Util.pm
+++ b/lib/ASM/Util.pm
@@ -239,6 +239,9 @@ sub stripResp
{
my $module = shift;
my $response = shift;
+ if (!defined($response)) {
+ return undef;
+ }
my @answer = $response->answer;
if ($response->{header}->{rcode} ne "NOERROR") {
dprint($module, Dumper($response), 'dns');