git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c96dc78
)
s3:tldap: Comment code for to LDAP escaping version
author
Andreas Schneider
<asn@samba.org>
Mon, 19 Feb 2018 11:29:55 +0000
(12:29 +0100)
committer
Andrew Bartlett
<abartlet@samba.org>
Mon, 19 Feb 2018 18:17:12 +0000
(19:17 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/lib/tldap.c
patch
|
blob
|
history
diff --git
a/source3/lib/tldap.c
b/source3/lib/tldap.c
index 33a852446b9a253526c70afb82d9ed41086a2de7..205a9cf2b06d83a29f7386e3b27209a72e0c05a9 100644
(file)
--- a/
source3/lib/tldap.c
+++ b/
source3/lib/tldap.c
@@
-1280,6
+1280,7
@@
static bool tldap_unescape_inplace(char *value, size_t *val_len)
}
i++;
+ /* LDAPv3 escaped */
c = tldap_hex2char(&value[i]);
if (c >= 0 && c < 256) {
value[p] = c;
@@
-1288,6
+1289,7
@@
static bool tldap_unescape_inplace(char *value, size_t *val_len)
break;
}
+ /* LDAPv2 escaped */
switch (value[i]) {
case '(':
case ')':