From e03f7ce05a68f021d654d1f4c99c3b4ab4a2fec6 Mon Sep 17 00:00:00 2001
From: Brett Bryant <bbryant@digium.com>
Date: Tue, 29 Jul 2008 21:23:43 +0000
Subject: [PATCH] Fix deadlock when unloading res_http_post because the uris
 lock was still locked.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@134253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 main/http.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/main/http.c b/main/http.c
index 77ed8a12fe..1a7579761b 100644
--- a/main/http.c
+++ b/main/http.c
@@ -391,6 +391,7 @@ void ast_http_uri_unlink_all_with_key(const char *key)
 		}
 	}
 	AST_RWLIST_TRAVERSE_SAFE_END
+	AST_RWLIST_UNLOCK(&uris);
 }
 
 /*
-- 
GitLab