summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2009-08-31 21:45:00 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2009-08-31 21:45:00 +0000
commit006b0b480bd3052dac58f9c4b3b21ef6917ccbe4 (patch)
treeb8f29eb877c04c72e197cf748b947f62b554cb92 /main
parent9b12df5731227a7a47264cef01e6c86a1f76fd0f (diff)
Properly initialize the session to prevent a crash.
(closes issue #15774) Reported by: lasko Patches: 20090831__issue15774.diff.txt uploaded by tilghman (license 14) Tested by: lasko git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@215069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c
index f833d4888..a293d3aaa 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -4726,7 +4726,7 @@ static int generic_http_callback(struct ast_tcptls_session_instance *ser,
struct ast_variable *get_params,
struct ast_variable *headers)
{
- struct mansession s = {.session = NULL, };
+ struct mansession s = { .session = NULL, .tcptls_session = ser };
struct mansession_session *session = NULL;
uint32_t ident = 0;
int blastaway = 0;