git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cbdb48
)
Use correct size value for linearize call.
author
Jeremy Allison
<jra@samba.org>
Sat, 29 Dec 2007 22:43:32 +0000
(14:43 -0800)
committer
Jeremy Allison
<jra@samba.org>
Sat, 29 Dec 2007 22:43:32 +0000
(14:43 -0800)
Jeremy.
(This used to be commit
a5df44f5b7887d10c1e1a0b7a3dd05bcf31015e1
)
source3/winbindd/winbindd_cm.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_cm.c
b/source3/winbindd/winbindd_cm.c
index 6a4f531c5f31c099185259593b993500948c5124..33674d2cf70e12c929a77d0c80afbf542ed483ee 100644
(file)
--- a/
source3/winbindd/winbindd_cm.c
+++ b/
source3/winbindd/winbindd_cm.c
@@
-1030,10
+1030,10
@@
static bool send_getdc_request(struct sockaddr_storage *dc_ss,
return false;
}
- sid_linearize(p, sid_size, sid);
if (sid_size + 8 > sizeof(outbuf) - PTR_DIFF(p, outbuf)) {
return false;
}
+ sid_linearize(p, sizeof(outbuf) - PTR_DIFF(p, outbuf), sid);
p += sid_size;