Changeset 5220 for pjproject/trunk


Ignore:
Timestamp:
Dec 30, 2015 3:40:16 AM (9 years ago)
Author:
ming
Message:

Re #1882 (misc): Fixed incorrect sizeof argument when using pj_bzero() and pj_memcpy() in ssl_sock_ossl.c

Thanks to Dusan Klinec for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c

    r5216 r5220  
    966966    char *p, *q; 
    967967 
    968     pj_bzero(cn, sizeof(cn)); 
     968    pj_bzero(cn, sizeof(pj_str_t)); 
    969969 
    970970    p = pj_strstr(gen_name, &CN_sign); 
     
    20542054 
    20552055    cert_ = PJ_POOL_ZALLOC_T(pool, pj_ssl_cert_t); 
    2056     pj_memcpy(cert_, cert, sizeof(cert)); 
     2056    pj_memcpy(cert_, cert, sizeof(pj_ssl_cert_t)); 
    20572057    pj_strdup_with_null(pool, &cert_->CA_file, &cert->CA_file); 
    20582058    pj_strdup_with_null(pool, &cert_->CA_path, &cert->CA_path); 
Note: See TracChangeset for help on using the changeset viewer.