This uses the fact that we know the end of the string in p to avoid
needing a strlen() call. Otherwise the winbindd validation that the
extra_data is terminated may fail, if the un-initiliased memory is not
zero.
Andrew Bartlett
Change-Id: I9b28068e4fbd3754c8d14724af93638d657810dd
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Apr 9 18:26:40 CEST 2014 on sn-devel-104
req.cmd = WINBINDD_SIDS_TO_XIDS;
req.pid = getpid();
req.extra_data.data = sids;
- req.extra_len = sidslen;
+ req.extra_len = (p - sids);
ret = wb_simple_trans(ev, fd, &req, mem_ctx, &resp, &err);
if (ret == -1) {