You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
openssl: Update to pristine 1.0.2o (security update)
This commit is contained in:
8
thirdparty/openssl/ssl/s2_lib.c
vendored
8
thirdparty/openssl/ssl/s2_lib.c
vendored
@@ -326,9 +326,9 @@ int ssl2_new(SSL *s)
|
||||
{
|
||||
SSL2_STATE *s2;
|
||||
|
||||
if ((s2 = OPENSSL_malloc(sizeof *s2)) == NULL)
|
||||
if ((s2 = OPENSSL_malloc(sizeof(*s2))) == NULL)
|
||||
goto err;
|
||||
memset(s2, 0, sizeof *s2);
|
||||
memset(s2, 0, sizeof(*s2));
|
||||
|
||||
# if SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER + 3 > SSL2_MAX_RECORD_LENGTH_2_BYTE_HEADER + 2
|
||||
# error "assertion failed"
|
||||
@@ -371,7 +371,7 @@ void ssl2_free(SSL *s)
|
||||
OPENSSL_free(s2->rbuf);
|
||||
if (s2->wbuf != NULL)
|
||||
OPENSSL_free(s2->wbuf);
|
||||
OPENSSL_cleanse(s2, sizeof *s2);
|
||||
OPENSSL_cleanse(s2, sizeof(*s2));
|
||||
OPENSSL_free(s2);
|
||||
s->s2 = NULL;
|
||||
}
|
||||
@@ -386,7 +386,7 @@ void ssl2_clear(SSL *s)
|
||||
rbuf = s2->rbuf;
|
||||
wbuf = s2->wbuf;
|
||||
|
||||
memset(s2, 0, sizeof *s2);
|
||||
memset(s2, 0, sizeof(*s2));
|
||||
|
||||
s2->rbuf = rbuf;
|
||||
s2->wbuf = wbuf;
|
||||
|
||||
Reference in New Issue
Block a user