mirror of https://github.com/apache/cloudstack.git
awsapi: fix duplicate variable
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
bf397bfc88
commit
1ef12f4145
|
|
@ -280,7 +280,6 @@ public class RestAuth {
|
|||
int offset = signature.indexOf( "%" );
|
||||
if (-1 != offset) signature = URLDecoder.decode( signature, "UTF-8" );
|
||||
|
||||
boolean match = signature.equals( calSig );
|
||||
boolean match = ConstantTimeComparator.compareStrings(signature, calSig);
|
||||
if (!match)
|
||||
logger.error( "Signature mismatch, [" + signature + "] [" + calSig + "] over [" + StringToSign + "]" );
|
||||
|
|
|
|||
Loading…
Reference in New Issue