miquella / vaulted

Spawning and storage of secure environments
MIT License
254 stars 30 forks source link

Fix cloning session with SSHOptions #180

Closed miquella closed 4 years ago

miquella commented 4 years ago

(*Session).Clone() incorrectly copied the reference to the old SSHOptions rather than cloning it as well.

This means that any modifications to the SSH options, whether through the old session or the new, would be manifested in the other session. This is clearly undesired behavior of a clone method, so we now duplicate the SSHOptions as well.