Make sure that tcptls_session is properly initialized.

(issue #18598)
Reported by: ksn


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@316917 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Sean Bright
2011-05-05 02:23:28 +00:00
parent e5e49b9c52
commit d4a843f8d1

View File

@@ -5680,7 +5680,7 @@ static int auth_http_callback(struct ast_tcptls_session_instance *ser,
struct ast_variable *headers)
{
struct mansession_session *session = NULL;
struct mansession s = { NULL, };
struct mansession s = { .session = NULL, .tcptls_session = ser };
struct ast_variable *v, *params = get_params;
char template[] = "/tmp/ast-http-XXXXXX"; /* template for temporary file */
struct ast_str *http_header = NULL, *out = NULL;