http: Fix crash when talking to flaky OCS server.
commitaf872c542c62926c39be6f50391dddc5d360eac9
authorDave Overton <therealdave32@gmail.com>
Wed, 10 Jul 2013 13:32:51 +0000 (10 14:32 +0100)
committerDavid Overton <david.overton@eu.clara.net>
Wed, 10 Jul 2013 13:53:32 +0000 (10 14:53 +0100)
treef6db6b56625511651865314e00ccf92dc6133867
parent43b1ae4d8c850e517dcbae898085a9c637c9e826
http: Fix crash when talking to flaky OCS server.

We tend to see lots of SSL read and write errors on an OCS server we
currently use. Most of these are handled well and the plugin reconnects
seamlessly, however due to some recent infrastructure changes we
started seeing pidgin segfault as often as every couple of minutes.

It appears that if a connection is successfully made, but immediately
sees a read error, it is then dropped but the timeout schedule is not
cancelled.

When the http timeout schedule then fires, the already freed connection
is dropped a second time.
src/core/sipe-http-transport.c