mirror of
https://github.com/mrusme/neonmodem.git
synced 2025-01-03 14:56:41 -05:00
Merge pull request #33 from greenfoo/incorrect_pwd_segfault
Fix segfault when entering incorrect password
This commit is contained in:
commit
f0ac5c9648
@ -98,11 +98,12 @@ 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.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
|
return errs
|
||||||
|
Loading…
Reference in New Issue
Block a user