diff options
author | Volker Lendecke <vl@samba.org> | 2012-06-14 20:26:28 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-06-15 12:14:27 +0200 |
commit | 737c0a54731803c84f0f29d96dd40ac819aec3e8 (patch) | |
tree | de2309feed737fe96ee85cb1f67a946ef792d35d /source3/passdb | |
parent | 9afd4be688429d7bb344087cb3eda876f18e19f9 (diff) | |
download | samba-737c0a54731803c84f0f29d96dd40ac819aec3e8.tar.gz samba-737c0a54731803c84f0f29d96dd40ac819aec3e8.tar.bz2 samba-737c0a54731803c84f0f29d96dd40ac819aec3e8.zip |
dbwrap: dbwrap_fetch_int32->dbwrap_fetch_int32_bystring
Signed-off-by: Michael Adam <obnox@samba.org>
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 */ } |