1
0
mirror of https://github.com/mrusme/neonmodem.git synced 2024-11-03 04:27:16 -05:00

Merge pull request #33 from greenfoo/incorrect_pwd_segfault

Fix segfault when entering incorrect password
This commit is contained in:
mrusme 2023-06-21 14:25:34 -05:00 committed by GitHub
commit f0ac5c9648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,13 +98,14 @@ 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)
}
}
return errs
}