mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-09-22 04:35:55 -04:00
Fix segfault when entering incorrect password
This commit is contained in:
parent
c85b4023cf
commit
7e64143d9c
@ -98,13 +98,14 @@ func loadSystems(c *ctx.Ctx) []error {
|
|||||||
errs = append(errs, err)
|
errs = append(errs, err)
|
||||||
} else {
|
} else {
|
||||||
c.Logger.Debugf("loaded %s system", sysCfg.Type)
|
c.Logger.Debugf("loaded %s system", sysCfg.Type)
|
||||||
}
|
|
||||||
|
|
||||||
c.AddSystem(&sys)
|
c.AddSystem(&sys)
|
||||||
c.Logger.Debugf("setting system ID to %d", c.NumSystems()-1)
|
c.Logger.Debugf("setting system ID to %d", c.NumSystems()-1)
|
||||||
sys.SetID(c.NumSystems() - 1)
|
sys.SetID(c.NumSystems() - 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
return errs
|
return errs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user