Files
headscale/hscontrol
Igor Serganov 8d65201a93 db: check errors in openDB
On the SQLite path openDB called db.DB() and configured the pool
before looking at the error from gorm.Open, and both backends
discarded the error from db.DB(). A failed open returned a
half-initialised *gorm.DB alongside the error, and a nil *sql.DB
from db.DB() would have been dereferenced.

Return early on either error so callers get a nil handle and the
original error.
2026-10-22 22:33:03 +02:00
..
2026-10-22 22:33:03 +02:00
2026-06-17 16:12:19 +02:00
2026-10-18 20:53:18 +02:00
2026-06-17 16:12:19 +02:00