Commit e11d79be authored by Leigh Stoller's avatar Leigh Stoller

Add a check for missing credential.

parent db6263f2
......@@ -375,7 +375,10 @@ sub DiscoverResources($)
if (! (defined($credentials))) {
return GeniResponse->MalformedArgsResponse("Missing arguments");
}
my ($credential,$speaksfor,@morecreds) = GeniStd::CheckCredentials($credentials);
my ($credential,$speaksfor,@morecreds) =
GeniStd::CheckCredentials($credentials);
return GeniResponse->MalformedArgsResponse("Missing arguments")
if (!defined($credential));
return $credential
if (GeniResponse::IsResponse($credential));
......
Markdown is supported
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