diff --git a/criu_opts.go b/criu_opts.go index f898ceb21..ae6f51b3e 100644 --- a/criu_opts.go +++ b/criu_opts.go @@ -12,5 +12,5 @@ type CriuOpts struct { TcpEstablished bool // checkpoint/restore established TCP connections ExternalUnixConnections bool // allow external unix connections ShellJob bool // allow to dump and restore shell jobs - Ps *CriuPageServerInfo // allow to dump to criu page server + Ps CriuPageServerInfo // allow to dump to criu page server } diff --git a/nsinit/checkpoint.go b/nsinit/checkpoint.go index 9c7f3d3a2..dc10e6534 100644 --- a/nsinit/checkpoint.go +++ b/nsinit/checkpoint.go @@ -54,7 +54,7 @@ var checkpointCommand = cli.Command{ if err != nil { fatal(fmt.Errorf("Invalid port number")) } - criuOpts.Ps = &libcontainer.CriuPageServerInfo{ + criuOpts.Ps = libcontainer.CriuPageServerInfo{ Address: addressPort[0], Port: int32(port_int), }