Netflix / msl

Message Security Layer
Apache License 2.0
716 stars 79 forks source link

Correct (hopefully) master token lock cleanup in MslControl. #277

Closed wmiaw closed 6 years ago

wmiaw commented 6 years ago

Do not release the master token (an extra time) in RequestService.execute() after the recursive call is made, but make sure to release it in all other cases.

Also make sure to release the master token if an exception is thrown while retrieving the user ID token in buildRequest(), buildResponse().