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)
commit75d537d3a5e3fc5258ce48bfec0c0ce6160978f6
treea695fcdfaa51cea6daebaf27dc58eb3d52f71f44
parent30b1733d75a5f309441818be9718c0434b984f42
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.
source/libcli/raw/clitransport.c