1
0
Fork 0

Fix segfault when entering incorrect password

This commit is contained in:
Fernando Ramos 2023-06-18 22:21:59 +02:00
parent c85b4023cf
commit 7e64143d9c
1 changed files with 4 additions and 3 deletions

View File

@ -98,11 +98,12 @@ func loadSystems(c *ctx.Ctx) []error {
errs = append(errs, err)
} else {
c.Logger.Debugf("loaded %s system", sysCfg.Type)
c.AddSystem(&sys)
c.Logger.Debugf("setting system ID to %d", c.NumSystems()-1)
sys.SetID(c.NumSystems() - 1)
}
c.AddSystem(&sys)
c.Logger.Debugf("setting system ID to %d", c.NumSystems()-1)
sys.SetID(c.NumSystems() - 1)
}
return errs