From: David Vossel Date: Mon, 23 May 2011 16:15:18 +0000 (+0000) Subject: Adds missing part to the ast_tcptls_server_start fails second attempt to bind patch. X-Git-Tag: 1.6.2.19-rc1~3^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57fb23f1aa36765a34ea07b0f65645567ead3fac;p=thirdparty%2Fasterisk.git Adds missing part to the ast_tcptls_server_start fails second attempt to bind patch. (closes issue #19289) Reported by: wdoekes Patches: issue19289_delay_old_address_setting_tcptls_2.patch uploaded by wdoekes (license 717) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@320562 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/tcptls.c b/main/tcptls.c index 2b51b49c16..816c980e64 100644 --- a/main/tcptls.c +++ b/main/tcptls.c @@ -510,6 +510,7 @@ void ast_tcptls_server_stop(struct ast_tcptls_session_args *desc) pthread_cancel(desc->master); pthread_kill(desc->master, SIGURG); pthread_join(desc->master, NULL); + desc->master = AST_PTHREADT_NULL; } if (desc->accept_fd != -1) close(desc->accept_fd);