Commit 9274a1d1 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor fix to impotent mode in GetTicket(); do not store the ticket.

parent 25712141
......@@ -1072,11 +1072,16 @@ sub GetTicket($;$)
"Could not create GeniTicket object");
goto bad;
}
if ($newticket->Sign() || $newticket->Store()) {
if ($newticket->Sign()) {
$response = GeniResponse->Create(GENIRESPONSE_ERROR, undef,
"Could not sign Ticket");
goto bad;
}
if (!$impotent && $newticket->Store()) {
$response = GeniResponse->Create(GENIRESPONSE_ERROR, undef,
"Internal error storing Ticket");
goto bad;
}
if ($isupdate) {
#
......
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