r23057: only call the async recv function for the first pending receive, not
authorAndrew Tridgell <tridge@samba.org>
Mon, 21 May 2007 23:35:14 +0000 (23:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:52:45 +0000 (14:52 -0500)
commit31f047f734d763ac6661f33afae8f39cf2fd4bd4
tree4c3f11d1b63e1b699b98a0f6c25ce5322af9e6ca
parent4378af38ec9fcf2bd848355123f22d7a67130f9b
r23057: only call the async recv function for the first pending receive, not
all pending receives, when the transport dies. This is because the
async callback most commonly shuts down the connection (it's the only
reasonable thing to do when it's dead), and that frees the whole
context. That means that if we loop more than once, we'll end up using
freed memory.
(This used to be commit 75d537d3a5e3fc5258ce48bfec0c0ce6160978f6)
source4/libcli/raw/clitransport.c