Sandbox.SetKey() should not reset the osl sandbox on failure
@@ -644,13 +644,6 @@ func (sb *sandbox) SetKey(basePath string) error {
sb.Lock()
sb.osSbox = osSbox
sb.Unlock()
- defer func() {
- if err != nil {
- sb.Lock()
- sb.osSbox = nil
- sb.Unlock()
- }
- }()
// If the resolver was setup before stop it and set it up in the
// new osl sandbox.