Changeset a601e7d in mod_gnutls for src/gnutls_io.c


Ignore:
Timestamp:
Jun 30, 2009, 2:08:22 PM (10 years ago)
Author:
Nokis Mavrogiannopoulos <nmav@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
377a900
Parents:
f7a7d66
git-author:
Nikos Mavrogiannopoulos <nmav@…> (06/30/09 14:08:22)
git-committer:
Nokis Mavrogiannopoulos <nmav@…> (06/30/09 14:08:22)
Message:

Try to avoid bug http://issues.outoforder.cc/view.php?id=102

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_io.c

    rf7a7d66 ra601e7d  
    382382        gnutls_alert_send(ctxt->session, GNUTLS_AL_FATAL,
    383383                          gnutls_error_to_alert(ret, NULL));
    384         gnutls_deinit(ctxt->session);
     384        if (ctxt->session) gnutls_deinit(ctxt->session);
     385        ctxt->session = NULL;
    385386        return -1;
    386387    }
     
    413414        gnutls_alert_send(ctxt->session, GNUTLS_AL_FATAL,
    414415                          gnutls_error_to_alert(ret, NULL));
    415         gnutls_deinit(ctxt->session);
     416        if (ctxt->session) gnutls_deinit(ctxt->session);
     417        ctxt->session = NULL;
    416418        return ret;
    417419    }
     
    556558
    557559            apr_brigade_cleanup(ctxt->output_bb);
    558             gnutls_deinit(ctxt->session);
     560            if (ctxt->session) gnutls_deinit(ctxt->session);
     561            ctxt->session = NULL;
    559562            continue;
    560563
Note: See TracChangeset for help on using the changeset viewer.