git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7be16e5
)
r2282: Remove one more magic constant from the source, replace with sizeof().
author
Andrew Bartlett
<abartlet@samba.org>
Sat, 11 Sep 2004 15:04:40 +0000
(15:04 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:58:39 +0000
(12:58 -0500)
Andrew Bartlett
source/rpc_server/samr/samdb.c
patch
|
blob
|
history
diff --git
a/source/rpc_server/samr/samdb.c
b/source/rpc_server/samr/samdb.c
index 0d4443958a825c70dc515260c57e0035f7bd8095..ac78dc60c7bb9be5cb1b2d81a5773b35315f2577 100644
(file)
--- a/
source/rpc_server/samr/samdb.c
+++ b/
source/rpc_server/samr/samdb.c
@@
-462,7
+462,7
@@
struct samr_Password samdb_result_hash(struct ldb_message *msg, const char *attr
const struct ldb_val *val = ldb_msg_find_ldb_val(msg, attr);
ZERO_STRUCT(hash);
if (val) {
- memcpy(hash.hash, val->data, MIN(val->length,
16
));
+ memcpy(hash.hash, val->data, MIN(val->length,
sizeof(hash.hash)
));
}
return hash;
}