Skip to content

Commit 87163b2

Browse files
committed
fix memset usage
1 parent d1bcdc5 commit 87163b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ssl/tls1.c

100755100644
+2-2
Original file line numberDiff line numberDiff line change
@@ -1722,8 +1722,8 @@ SSL_SESSION *ssl_session_update(int max_sessions, SSL_SESSION *ssl_sessions[],
17221722

17231723
/* ok, we've used up all of our sessions. So blow the oldest session away */
17241724
oldest_sess->conn_time = tm;
1725-
memset(oldest_sess->session_id, 0, sizeof(SSL_SESSION_ID_SIZE));
1726-
memset(oldest_sess->master_secret, 0, sizeof(SSL_SECRET_SIZE));
1725+
memset(oldest_sess->session_id, 0, SSL_SESSION_ID_SIZE);
1726+
memset(oldest_sess->master_secret, 0, SSL_SECRET_SIZE);
17271727
SSL_CTX_UNLOCK(ssl->ssl_ctx->mutex);
17281728
return oldest_sess;
17291729
}

0 commit comments

Comments
 (0)