From 1b0caa69197fb5c9652671d0dd6b88efc20378a1 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Mon, 20 Dec 2010 00:37:26 -0500 Subject: [PATCH] avoid passing undefined data to decode_base64() --- Crypt/Monkeysphere/MSVA.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Crypt/Monkeysphere/MSVA.pm b/Crypt/Monkeysphere/MSVA.pm index 1ade1ab..fc4f70c 100755 --- a/Crypt/Monkeysphere/MSVA.pm +++ b/Crypt/Monkeysphere/MSVA.pm @@ -183,6 +183,9 @@ sub parse_rfc4716body { my $data = shift; + + return undef + unless defined($data); $data = decode_base64($data) or return undef; msvalog('debug', "key properties: %s\n", unpack('H*', $data)); -- 2.26.2