buddy: fix use after free in process_buddy_photo_response()
commit2831e0bb27a437538d699b8adade7eabb28b7f23
authorJakub Adam <jakub.adam@ktknet.cz>
Wed, 26 Dec 2012 13:26:20 +0000 (26 14:26 +0100)
committerJakub Adam <jakub.adam@ktknet.cz>
Wed, 26 Dec 2012 13:27:00 +0000 (26 14:27 +0100)
treeee41c0bff845fa7bd280bff26c8b9dfab90f9f86
parenta1fd830ac1a86da1eb69210da1e51ac4b792e8a8
buddy: fix use after free in process_buddy_photo_response()

We can't dispose HttpConn in photo response handler; correct practice is
to call http_conn_set_close() instead. This will trigger connection
cleanup once we return from the callback function.

Thanks to Matthew Duggan for pointing this out.
src/core/sipe-buddy.c