Browse Source

Merge pull request #1700 from aboch/clr

Sandbox.SetKey() should not reset the osl sandbox on failure
Santhosh Manohar 8 years ago
parent
commit
630b7a6b41
1 changed files with 0 additions and 7 deletions
  1. 0 7
      libnetwork/sandbox.go

+ 0 - 7
libnetwork/sandbox.go

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