Changeset 8e98518 in mod_gnutls for src/gnutls_hooks.c


Ignore:
Timestamp:
Jun 27, 2010, 2:10:12 PM (9 years ago)
Author:
Nikos Mavrogiannopoulos <nmav@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
622abdd
Parents:
ed07ddf
Message:

properly initialize variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    red07ddf r8e98518  
    4747static apr_status_t mgs_cleanup_pre_config(void *data)
    4848{
     49    gnutls_free(session_ticket_key.data);
     50    session_ticket_key.data = NULL;
     51    session_ticket_key.size = 0;
    4952    gnutls_global_deinit();
    5053    return APR_SUCCESS;
     
    10361039    const gnutls_datum_t *cert_list;
    10371040    unsigned int cert_list_size, status, expired;
    1038     int rv, ret;
     1041    int rv = GNUTLS_E_NO_CERTIFICATE_FOUND, ret;
    10391042    unsigned int ch_size = 0;
    10401043    union {
     
    10651068            "GnuTLS: A Chain of %d certificate(s) was provided for validation", cert_list_size);
    10661069
    1067         for (ch_size =0; ch_size<cert_list_size; ch_size++) {
     1070        for (ch_size = 0; ch_size<cert_list_size; ch_size++) {
    10681071            gnutls_x509_crt_init(&cert.x509[ch_size]);
    10691072            rv = gnutls_x509_crt_import(cert.x509[ch_size], &cert_list[ch_size], GNUTLS_X509_FMT_DER);
Note: See TracChangeset for help on using the changeset viewer.