Commit 40109472 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add another sanity check in the sshkey checking code.

parent 52c411a1
......@@ -6625,6 +6625,8 @@ sub AddKeys($$$)
if (exists($keys->[0]->{'urn'}) || exists($keys->[0]->{'login'})) {
foreach my $ref (@{ $keys }) {
goto bad
if (ref($ref) ne "HASH");
goto bad
if (! (exists($ref->{'urn'}) || exists($ref->{'login'})));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment