X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=keydb_pg.c;h=d599afecc97ee3012f1dd96294d78b2490eea6b7;hb=2458360e75aa46091f60c16e041c07bffe2edefb;hp=ca7e35bac0545796f4fe32c768a4b47af2ec78d0;hpb=4117d3174e8ae389db9fff2867592fc798a896b2;p=onak.git diff --git a/keydb_pg.c b/keydb_pg.c index ca7e35b..d599afe 100644 --- a/keydb_pg.c +++ b/keydb_pg.c @@ -666,7 +666,7 @@ static void pg_cleanupdb(struct onak_dbctx *dbctx) * this file are called in order to allow the DB to be initialized ready * for access. */ -struct onak_dbctx *keydb_pg_init(bool readonly) +struct onak_dbctx *keydb_pg_init(struct onak_db_config *dbcfg, bool readonly) { struct onak_dbctx *dbctx; PGconn *dbconn; @@ -675,6 +675,7 @@ struct onak_dbctx *keydb_pg_init(bool readonly) if (dbctx == NULL) { return NULL; } + dbctx->config = dbcfg; dbconn = PQsetdbLogin(config.pg_dbhost, // host NULL, // port