summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiscomfitor <michael.blumenkrantz@gmail.com>2013-03-22 21:16:21 +0000
committerdiscomfitor <michael.blumenkrantz@gmail.com>2013-03-22 21:16:21 +0000
commitd028924ea7539098735afeba4ff8f050a1cdb8cc (patch)
tree13498457a82c0e4553833ea237642b4306c3416c
parent86bc9907539dbcecc483424769f12353489ffa58 (diff)
fix azy client crash with http 1.0
-rw-r--r--src/lib/azy/azy_events.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/azy/azy_events.c b/src/lib/azy/azy_events.c
index 968a9cc..c87a2fb 100644
--- a/src/lib/azy/azy_events.c
+++ b/src/lib/azy/azy_events.c
@@ -894,10 +894,13 @@ azy_events_client_transfer_complete_cleanup(Azy_Client *client, Azy_Content *con
894 } 894 }
895 } 895 }
896 /* http 1.0 requires that we disconnect after every response */ 896 /* http 1.0 requires that we disconnect after every response */
897 if ((!content->recv_net->proto) || (client && client->net && (!client->net->proto))) 897 if (client->net)
898 { 898 {
899 ecore_con_server_del(client->net->conn); 899 if ((!content->recv_net->proto) || (client && client->net && (!client->net->proto)))
900 client->net->conn = content->recv_net->conn = NULL; 900 {
901 if (client->net->conn) ecore_con_server_del(client->net->conn);
902 client->net->conn = content->recv_net->conn = NULL;
903 }
901 } 904 }
902 azy_content_free(content); 905 azy_content_free(content);
903} 906}