Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
40109472
Commit
40109472
authored
Aug 20, 2015
by
Leigh B Stoller
Browse files
Add another sanity check in the sshkey checking code.
parent
52c411a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniCM.pm.in
View file @
40109472
...
@@ -6625,6 +6625,8 @@ sub AddKeys($$$)
...
@@ -6625,6 +6625,8 @@ sub AddKeys($$$)
#
#
if
(
exists
($
keys
->[
0
]->{
'urn'
})
||
exists
($
keys
->[
0
]->{
'login'
}))
{
if
(
exists
($
keys
->[
0
]->{
'urn'
})
||
exists
($
keys
->[
0
]->{
'login'
}))
{
foreach
my
$
ref
(@{
$
keys
})
{
foreach
my
$
ref
(@{
$
keys
})
{
goto
bad
if
(
ref
($
ref
)
ne
"HASH"
);
goto
bad
goto
bad
if
(
! (exists($ref->{'urn'}) || exists($ref->{'login'})));
if
(
! (exists($ref->{'urn'}) || exists($ref->{'login'})));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment