diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-06-20 18:40:32 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-06-20 11:18:35 +0200 |
commit | 58f7cda1bc6b7767c318a038bdb686f4e59e2e64 (patch) | |
tree | c6879a9aa264f017724497e1212a8158cc21d6a8 /libcli | |
parent | 3a8faefd6625db45e11c775a77413b35189e2ba9 (diff) | |
download | samba-58f7cda1bc6b7767c318a038bdb686f4e59e2e64.tar.gz samba-58f7cda1bc6b7767c318a038bdb686f4e59e2e64.tar.bz2 samba-58f7cda1bc6b7767c318a038bdb686f4e59e2e64.zip |
tdb_compat: use tdb_errorstr_compat()
Since TDB2 functions return the error directly, tdb_errorstr() taken an
error code, not the tdb as it does in TDB1.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/auth/schannel_state_tdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/auth/schannel_state_tdb.c b/libcli/auth/schannel_state_tdb.c index f95691fd5c..76110b89ef 100644 --- a/libcli/auth/schannel_state_tdb.c +++ b/libcli/auth/schannel_state_tdb.c @@ -100,7 +100,7 @@ NTSTATUS schannel_store_session_key_tdb(struct tdb_wrap *tdb_sc, ret = tdb_store_bystring(tdb_sc->tdb, keystr, value, TDB_REPLACE); if (ret != TDB_SUCCESS) { DEBUG(0,("Unable to add %s to session key db - %s\n", - keystr, tdb_errorstr(tdb_sc->tdb))); + keystr, tdb_errorstr_compat(tdb_sc->tdb))); talloc_free(keystr); return NT_STATUS_INTERNAL_DB_CORRUPTION; } |