Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 434802
Collapse All | Expand All

(-)freeradius-server-2.1.11.orig/src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.c (-1 / +1 lines)
Lines 484-490 Link Here
484
	 */
484
	 */
485
	buf[0] = '\0';
485
	buf[0] = '\0';
486
	asn_time = X509_get_notAfter(client_cert);
486
	asn_time = X509_get_notAfter(client_cert);
487
	if ((lookup <= 1) && asn_time && (asn_time->length < MAX_STRING_LEN)) {
487
	if ((lookup <= 1) && asn_time && (asn_time->length < sizeof(buf))) {
488
		memcpy(buf, (char*) asn_time->data, asn_time->length);
488
		memcpy(buf, (char*) asn_time->data, asn_time->length);
489
		buf[asn_time->length] = '\0';
489
		buf[asn_time->length] = '\0';
490
		pairadd(&handler->certs,
490
		pairadd(&handler->certs,

Return to bug 434802