r3652: Fix malloc-history dependent failures in smbtorture.
authorAndrew Bartlett <abartlet@samba.org>
Wed, 10 Nov 2004 04:52:22 +0000 (04:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:05:42 +0000 (13:05 -0500)
commit017bf499d44d23c50406fb9647f9a2161be395f0
tree8e1bb65e98d2df52d4a32f03460ec79508770f96
parentd1f4ba08df3844a0d6af5e39ac66e724e68c32b3
r3652: Fix malloc-history dependent failures in smbtorture.

Because -r 3591 removed the over-allocation, realloc() had a chance of
returning a different pointer.  This broke the length calculations in
the trans2 send code.

I think the length calculations coudld be better expressed (less cute
PTR_DIFF tricks) but I'm not going to touch this any more than I need
to.

Andrew Bartlett
(This used to be commit 4bfc916a2c3b9745f47ce4eaa892cdcc431e19db)
source4/libcli/raw/rawtrans.c