1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #1700 from aboch/clr

Sandbox.SetKey() should not reset the osl sandbox on failure
This commit is contained in:
Santhosh Manohar 2017-04-10 17:26:58 -07:00 committed by GitHub
commit 630b7a6b41

View file

@ -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.