avoid passing undefined data to decode_base64()
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 20 Dec 2010 05:37:26 +0000 (00:37 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 20 Dec 2010 05:37:26 +0000 (00:37 -0500)
Crypt/Monkeysphere/MSVA.pm

index 1ade1ab137700c55b790d0b63fccfc6ef0a54323..fc4f70c318c077ee7bd57df016af0654ad4ce1c4 100755 (executable)
 
   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));