curl: strengthen assertion in curl_clean_state
commit675a775633e68bf8b426a896fea5b93a4f4ff1cc
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 May 2017 10:00:53 +0000 (15 12:00 +0200)
committerJeff Cody <jcody@redhat.com>
Tue, 16 May 2017 14:34:03 +0000 (16 10:34 -0400)
tree06d82645ba7b064a3636ad91b6e3da06a0e03742
parent327c8ebd7035e4d3d94b08dd741906f1d8bb8a53
curl: strengthen assertion in curl_clean_state

curl_clean_state should only be called after all AIOCBs have been
completed.  This is not so obvious for the call from curl_detach_aio_context,
so assert that.

Cc: qemu-stable@nongnu.org
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20170515100059.15795-2-pbonzini@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/curl.c