{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1746421451,
"reponame":"libwebsockets",
"desc":"libwebsockets lightweight C networking library",
"owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets",
"f":3,
"items": [
{"schema":"libjg2-1",
"cid":"ab1cccc662368a2ef35bac4bddfe8337",
"commit": {"type":"commit",
"time": 1612342199,
"time_ofs": 0,
"oid_tree": { "oid": "fc53c516779ab8a696fa0255092268a6947d0c7e", "alias": []},
"oid":{ "oid": "0a453e3be3dd76630082e541665892afc83ab8e9", "alias": []},
"msg": "tls: wrapper: make sure alpn freed once",
"sig_commit": { "git_time": { "time": 1612342199, "offset": 0 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },
"sig_author": { "git_time": { "time": 1612257969, "offset": 0 }, "name": "Jed Lu", "email": "jianlu@amazon.com", "md5": "ce74f834db5eb16ad715cc95ced04f1f" }},
"body": "tls: wrapper: make sure alpn freed once\n"
,
"diff": "diff --git a/lib/tls/mbedtls/wrapper/library/ssl_lib.c b/lib/tls/mbedtls/wrapper/library/ssl_lib.c\nindex 25408aa..a3220d6 100644\n--- a/lib/tls/mbedtls/wrapper/library/ssl_lib.c\n+++ b/lib/tls/mbedtls/wrapper/library/ssl_lib.c\n@@ -238,8 +238,10 @@ void SSL_CTX_free(SSL_CTX* ctx)\n \n X509_free(ctx-\u003eclient_CA);\n \n- if (ctx-\u003ealpn_protos)\n+ if (ctx-\u003ealpn_protos) {\n \t ssl_mem_free((void *)ctx-\u003ealpn_protos);\n+\t ctx-\u003ealpn_protos \u003d NULL;\n+ }\n \n ssl_mem_free(ctx);\n }\n@@ -353,8 +355,10 @@ void SSL_free(SSL *ssl)\n \n SSL_SESSION_free(ssl-\u003esession);\n \n- if (ssl-\u003ealpn_protos)\n+ if (ssl-\u003ealpn_protos) {\n \t ssl_mem_free((void *)ssl-\u003ealpn_protos);\n+\t ssl-\u003ealpn_protos \u003d NULL;\n+ }\n \n ssl_mem_free(ssl);\n }\n","s":{"c":1746421451,"u": 2216}}
],"g": 2720,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}