]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make sure that tcptls_session is properly initialized.
authorSean Bright <sean@malleable.com>
Thu, 5 May 2011 02:23:28 +0000 (02:23 +0000)
committerSean Bright <sean@malleable.com>
Thu, 5 May 2011 02:23:28 +0000 (02:23 +0000)
(issue #18598)
Reported by: ksn

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@316917 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c

index d17d3ed02858596f53dd69185120b2d6e1338cdb..394cb80a1feabd61d008ea456cac66ca09cebdb8 100644 (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;