diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/registry/reg_backend_db.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 23b59aa284..10f97c06ec 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -352,6 +352,14 @@ bool regdb_init(void) /* any upgrade code here if needed */ DEBUG(10, ("regdb_init: got INFO/version = %d != %d\n", vers_id, REGVER_V1)); + if (dbwrap_store_int32(regdb, vstring, REGVER_V1) != 0) { + DEBUG(0, ("regdb_init: error storing %s = %d\n", + vstring, REGVER_V1)); + return false; + } else { + DEBUG(10, ("regdb_init: stored %s = %d\n", + vstring, REGVER_V1)); + } } return true; |