Skip to content

Commit 48409f1

Browse files
author
IPredator
committed
Fix shctx memory leak
NOTE: Manual patch of bumptech#108
1 parent 3fc0ff6 commit 48409f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shctx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ int shctx_new_cb(SSL *ssl, SSL_SESSION *sess) {
173173
/* check if session reserved size in aligned buffer is large enougth for the ASN1 encode session */
174174
data_len=i2d_SSL_SESSION(sess, NULL);
175175
if(data_len > SHSESS_MAX_DATA_LEN)
176-
return 1;
176+
return 0;
177177

178178
/* process ASN1 session encoding before the lock: lower cost */
179179
p = data = encsess+SSL_MAX_SSL_SESSION_ID_LENGTH;

0 commit comments

Comments
 (0)