Explorar el Código

alloc: fix nil ptr bug

Eugene Yakubovich hace 9 años
padre
commit
41cb09f0e8
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      backend/alloc/alloc.go

+ 1 - 0
backend/alloc/alloc.go

@@ -37,6 +37,7 @@ func (m *AllocBackend) Init(extIface *net.Interface, extIP net.IP) (*backend.Sub
 	l, err := m.sm.AcquireLease(m.ctx, m.network, &attrs)
 	switch err {
 	case nil:
+		m.lease = l
 		return &backend.SubnetDef{
 			Net: l.Subnet,
 			MTU: extIface.MTU,