From b56bdb71055078e95ad911f9b1e73ee8b2f29be2 Mon Sep 17 00:00:00 2001 From: Leigh B Stoller Date: Tue, 8 Jan 2013 08:05:12 -0700 Subject: [PATCH] Remove temp file if certificate verification fails. --- protogeni/lib/GeniCredential.pm.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protogeni/lib/GeniCredential.pm.in b/protogeni/lib/GeniCredential.pm.in index 63d6a6ada..0340931a7 100755 --- a/protogeni/lib/GeniCredential.pm.in +++ b/protogeni/lib/GeniCredential.pm.in @@ -1,6 +1,6 @@ #!/usr/bin/perl -wT # -# Copyright (c) 2008-2012 University of Utah and the Flux Group. +# Copyright (c) 2008-2013 University of Utah and the Flux Group. # # {{{GENIPUBLIC-LICENSE # @@ -409,6 +409,7 @@ sub CreateFromSigned($$;$) close($fh); my $output = GeniUtil::ExecQuiet("$VERIFYCRED $filename"); if ($?) { + unlink($filename); $msg = $output; goto bad; } -- GitLab