diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-22 09:44:40 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-22 07:35:16 +0200 |
commit | 406bd2d121c3eeef7c3bb6bc74c7a6ccbe296c38 (patch) | |
tree | 0e8e23f2f2d2f41e8f5fb9c849bbc94172b896bc /lib/ntdb | |
parent | f7f6992c1e6ee8ac4a55c2fddf169ac695362036 (diff) | |
download | samba-406bd2d121c3eeef7c3bb6bc74c7a6ccbe296c38.tar.gz |
ntdb: hand correct error code when alloc_read allocation fails.
-ECUTNPASTE. This is not a usage error!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/ntdb')
-rw-r--r-- | lib/ntdb/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ntdb/io.c b/lib/ntdb/io.c index 11d5b1f367..a54f1a661c 100644 --- a/lib/ntdb/io.c +++ b/lib/ntdb/io.c @@ -347,7 +347,7 @@ static void *_ntdb_alloc_read(struct ntdb_context *ntdb, ntdb_off_t offset, buf = ntdb->alloc_fn(ntdb, prefix + len ? prefix + len : 1, ntdb->alloc_data); if (!buf) { - ntdb_logerr(ntdb, NTDB_ERR_OOM, NTDB_LOG_USE_ERROR, + ntdb_logerr(ntdb, NTDB_ERR_OOM, NTDB_LOG_ERROR, "ntdb_alloc_read alloc failed len=%zu", (size_t)(prefix + len)); return NTDB_ERR_PTR(NTDB_ERR_OOM); |