diff options
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_tdb.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c index a090fcd5bb..067c364370 100644 --- a/source3/passdb/pdb_tdb.c +++ b/source3/passdb/pdb_tdb.c @@ -451,14 +451,15 @@ static bool tdbsam_open( const char *name ) } /* Check the version */ - status = dbwrap_fetch_int32(db_sam, TDBSAM_VERSION_STRING, &version); + status = dbwrap_fetch_int32_bystring(db_sam, TDBSAM_VERSION_STRING, + &version); if (!NT_STATUS_IS_OK(status)) { version = 0; /* Version not found, assume version 0 */ } /* Get the minor version */ - status = dbwrap_fetch_int32(db_sam, TDBSAM_MINOR_VERSION_STRING, - &minor_version); + status = dbwrap_fetch_int32_bystring( + db_sam, TDBSAM_MINOR_VERSION_STRING, &minor_version); if (!NT_STATUS_IS_OK(status)) { minor_version = 0; /* Minor version not found, assume 0 */ } @@ -493,15 +494,15 @@ static bool tdbsam_open( const char *name ) } /* Re-check the version */ - status = dbwrap_fetch_int32(db_sam, TDBSAM_VERSION_STRING, - &version); + status = dbwrap_fetch_int32_bystring( + db_sam, TDBSAM_VERSION_STRING, &version); if (!NT_STATUS_IS_OK(status)) { version = 0; /* Version not found, assume version 0 */ } /* Re-check the minor version */ - status = dbwrap_fetch_int32(db_sam, TDBSAM_MINOR_VERSION_STRING, - &minor_version); + status = dbwrap_fetch_int32_bystring( + db_sam, TDBSAM_MINOR_VERSION_STRING, &minor_version); if (!NT_STATUS_IS_OK(status)) { minor_version = 0; /* Minor version not found, assume 0 */ } |