{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1752657607,
"reponame":"openssl",
"desc":"OpenSSL",
"owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://warmcat.com/repo/openssl",
"f":3,
"items": [
{"schema":"libjg2-1",
"cid":"ef37df722a5eff3a5908c8f1e90d05a5",
"commit": {"type":"commit",
"time": 1500395752,
"time_ofs": 60,
"oid_tree": { "oid": "b62bf132cbd220a54e7e2e91e0767177e15011ed", "alias": []},
"oid":{ "oid": "242525372c65d9c92fba970333ceb961abc24ce4", "alias": []},
"msg": "Remove session checks from SSL_clear()",
"sig_commit": { "git_time": { "time": 1500395752, "offset": 60 }, "name": "Matt Caswell", "email": "matt@openssl.org", "md5": "10f7b441a32d5790efad9fc68cae4af2" },
"sig_author": { "git_time": { "time": 1500391718, "offset": 60 }, "name": "Matt Caswell", "email": "matt@openssl.org", "md5": "10f7b441a32d5790efad9fc68cae4af2" }},
"body": "Remove session checks from SSL_clear()\n\nWe now allow a different protocol version when reusing a session so we can\nunconditionally reset the SSL_METHOD if it has changed.\n\nReviewed-by: Ben Kaduk \u003ckaduk@mit.edu\u003e\nReviewed-by: Bernd Edlinger \u003cbernd.edlinger@hotmail.de\u003e\n(Merged from https://github.com/openssl/openssl/pull/3954)\n"
,
"diff": "diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c\nindex d02e281..be15daa 100644\n--- a/ssl/ssl_lib.c\n+++ b/ssl/ssl_lib.c\n@@ -566,12 +566,9 @@ int SSL_clear(SSL *s)\n \n /*\n * Check to see if we were changed into a different method, if so, revert\n- * back. We always do this in TLSv1.3. Below that we only do it if we are\n- * not doing session-id reuse.\n+ * back.\n */\n- if (s-\u003emethod !\u003d s-\u003ectx-\u003emethod\n- \u0026\u0026 (SSL_IS_TLS13(s)\n- || (!ossl_statem_get_in_handshake(s) \u0026\u0026 s-\u003esession \u003d\u003d NULL))) {\n+ if (s-\u003emethod !\u003d s-\u003ectx-\u003emethod) {\n s-\u003emethod-\u003essl_free(s);\n s-\u003emethod \u003d s-\u003ectx-\u003emethod;\n if (!s-\u003emethod-\u003essl_new(s))\n","s":{"c":1752657607,"u": 44109}}
],"g": 44923,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}