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)
commit4bfc916a2c3b9745f47ce4eaa892cdcc431e19db
tree7b3dcbbf8d448af8c417979eef57465227fd6abd
parentbd9497b092335b2646a1955ea7c55ad33eb7d538
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
source/libcli/raw/rawtrans.c