Properly initialize the session to prevent a crash.
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 31 Aug 2009 21:45:00 +0000 (21:45 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 31 Aug 2009 21:45:00 +0000 (21:45 +0000)
(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

main/manager.c

index f833d48..a293d3a 100644 (file)
@@ -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;