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

(-)contrib/mod_tls.c (+2 lines)
Lines 2421-2426 Link Here
2421
     datalen = BIO_get_mem_data(mem, &data);
2421
     datalen = BIO_get_mem_data(mem, &data);
2422
  if (data) {
2422
  if (data) {
2423
    if (datalen > sizeof(buf)-1)
2424
        datalen = sizeof(buf)-1;
2423
    memset(&buf, '\0', sizeof(buf));
2425
    memset(&buf, '\0', sizeof(buf));
2424
    memcpy(buf, data, datalen);
2426
    memcpy(buf, data, datalen);
2425
    buf[datalen] = '\0';
2427
    buf[datalen] = '\0';

Return to bug 154650