git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make strhex_to_str clear on string limits. Remove pstring from web/*.c
[samba.git]
/
source3
/
libads
/
ldap.c
diff --git
a/source3/libads/ldap.c
b/source3/libads/ldap.c
index 533aa3026f565480da9941f6ee4596b4a9fa3e28..a4ba3760c2804e8f6ff73103c0ab70e2d7b7df7b 100644
(file)
--- a/
source3/libads/ldap.c
+++ b/
source3/libads/ldap.c
@@
-2853,10
+2853,10
@@
bool ads_get_sid_from_extended_dn(TALLOC_CTX *mem_ctx,
}
break;
case ADS_EXTENDED_DN_HEX_STRING: {
-
p
string buf;
+
f
string buf;
size_t buf_len;
- buf_len = strhex_to_str(buf, s
trlen(p), p
);
+ buf_len = strhex_to_str(buf, s
izeof(buf), p, strlen(p)
);
if (buf_len == 0) {
return False;
}