Changeset c05a8bb in mod_gnutls for src


Ignore:
Timestamp:
Jul 20, 2009, 4:39:22 PM (10 years ago)
Author:
Nokis Mavrogiannopoulos <nmav@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
67101aa
Parents:
c38a4e9
git-author:
Nikos Mavrogiannopoulos <nmav@…> (07/20/09 16:39:22)
git-committer:
Nokis Mavrogiannopoulos <nmav@…> (07/20/09 16:39:22)
Message:

only call gnutls_bye on non null gnutls session.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_io.c

    rc38a4e9 rc05a8bb  
    545545        apr_bucket *bucket = APR_BRIGADE_FIRST(bb);
    546546        if (AP_BUCKET_IS_EOC(bucket)) {
    547             do {
    548                 ret = gnutls_bye( ctxt->session, GNUTLS_SHUT_WR);
    549             } while(ret == GNUTLS_E_INTERRUPTED || ret == GNUTLS_E_AGAIN);
     547            if (ctxt->session != NULL) {
     548                do {
     549                    ret = gnutls_bye( ctxt->session, GNUTLS_SHUT_WR);
     550                } while(ret == GNUTLS_E_INTERRUPTED || ret == GNUTLS_E_AGAIN);
     551            }
    550552
    551553            apr_bucket_copy(bucket, &e);
Note: See TracChangeset for help on using the changeset viewer.