changeset 1484:97914b65790a

[security] Add g_thread_exit() to curl_manage_request() to avoid a resource starvation DoS. Incorrectly reported as a followup to Debian #435557.
author William Pitcock <nenolod@atheme-project.org>
date Mon, 13 Aug 2007 02:42:21 -0500
parents e8330e6bd0ba
children 7eacc3a2d30b d2c7a7352748
files src/curl/curl.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/curl/curl.c	Sun Aug 12 21:53:56 2007 +0200
+++ b/src/curl/curl.c	Mon Aug 13 02:42:21 2007 -0500
@@ -518,6 +518,7 @@
   g_cond_signal(handle->curl_cond);
   handle->thread = NULL;
 
+  g_thread_exit(NULL);
   return NULL;
 }