projects
/
monkeysphere-validation-agent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dc0b9a
)
avoid passing undefined data to decode_base64()
author
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Mon, 20 Dec 2010 05:37:26 +0000
(
00:37
-0500)
committer
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Mon, 20 Dec 2010 05:37:26 +0000
(
00:37
-0500)
Crypt/Monkeysphere/MSVA.pm
patch
|
blob
|
history
diff --git
a/Crypt/Monkeysphere/MSVA.pm
b/Crypt/Monkeysphere/MSVA.pm
index 1ade1ab137700c55b790d0b63fccfc6ef0a54323..fc4f70c318c077ee7bd57df016af0654ad4ce1c4 100755
(executable)
--- 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));