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:
5431398
)
check that key data is not empty, and return error otherwise.
author
Jameson Rollins
<jrollins@finestructure.net>
Fri, 31 Dec 2010 06:29:26 +0000
(
01:29
-0500)
committer
Jameson Rollins
<jrollins@finestructure.net>
Fri, 31 Dec 2010 06:29:26 +0000
(
01:29
-0500)
Crypt/Monkeysphere/MSVA.pm
patch
|
blob
|
history
diff --git
a/Crypt/Monkeysphere/MSVA.pm
b/Crypt/Monkeysphere/MSVA.pm
index 74c5b17a96715128976f131edf178a0b0bee3824..f2bb7b1108f406dfd46ce014f579ab89f363e733 100755
(executable)
--- a/
Crypt/Monkeysphere/MSVA.pm
+++ b/
Crypt/Monkeysphere/MSVA.pm
@@
-649,6
+649,12
@@
message => 'Unknown failure',
};
+ # check that there actually is key data
+ if ($data->{pkc}->{data} eq '') {
+ $ret->{message} = sprintf("Key data empty.");
+ return $status,$ret;
+ }
+
# check context string
if ($data->{context} =~ /^(https|ssh|smtp|ike|postgresql|imaps|imap|submission|e-mail)$/) {
$data->{context} = $1;