git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dbwrap: Fix Coverity ID 242750 Incorrect sizeof expression
[samba.git]
/
lib
/
dbwrap
/
dbwrap_rbt.c
diff --git
a/lib/dbwrap/dbwrap_rbt.c
b/lib/dbwrap/dbwrap_rbt.c
index c25ea6ec64f6c14e9194fca002b2174be892d5c2..d468953a8a854699b25d5f52b3cce43e06c321cc 100644
(file)
--- a/
lib/dbwrap/dbwrap_rbt.c
+++ b/
lib/dbwrap/dbwrap_rbt.c
@@
-411,7
+411,7
@@
static int db_rbt_trans_dummy(struct db_context *db)
static void db_rbt_id(struct db_context *db, const uint8_t **id, size_t *idlen)
{
*id = (uint8_t *)db;
- *idlen = sizeof(
db
);
+ *idlen = sizeof(
struct db_context *
);
}
struct db_context *db_open_rbt(TALLOC_CTX *mem_ctx)