Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions handler/implementations/passThrough.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ func (h *PassThrough) ReadWithNS(
// read. That is, the handler's Read() method is normally invoked twice: the
// first read returns X bytes, the second read returns 0 bytes.

if domain.ProcessNsMatch(process, cntr.InitProc()) {
initProc := cntr.InitProc()
if initProc != nil && domain.ProcessNsMatch(process, initProc) {

cntr.Lock()

Expand Down Expand Up @@ -309,7 +310,8 @@ func (h *PassThrough) WriteWithNS(
// (not in inner containers or unshared namespaces) then cache the data.
// See explanation in Read() method above.

if domain.ProcessNsMatch(process, cntr.InitProc()) {
initProc := cntr.InitProc()
if initProc != nil && domain.ProcessNsMatch(process, initProc) {
if !req.NoCache {
cntr.Lock()
err = cntr.SetData(path, req.Offset, req.Data)
Expand Down