Changeset 6868585 in mod_gnutls


Ignore:
Timestamp:
May 26, 2016, 6:00:16 PM (2 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, jessie-backports, master, upstream
Children:
a9fa300
Parents:
be41ee4
Message:

Remove unnecessary session pointer check

The transport functions are only called through the GnuTLS session
push/pull function pointers, so ctxt->session will always be non-NULL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_io.c

    rbe41ee4 r6868585  
    803803            else
    804804            {
    805                 if (ctxt->session)
    806                     gnutls_transport_set_errno(ctxt->session,
    807                                                EAI_APR_TO_RAW(ctxt->input_rc));
     805                gnutls_transport_set_errno(ctxt->session,
     806                                           EAI_APR_TO_RAW(ctxt->input_rc));
    808807                return -1;
    809808            }
     
    830829        if (len == 0)
    831830        {
    832             if (ctxt->session)
    833                 gnutls_transport_set_errno(ctxt->session,
    834                                            EAI_APR_TO_RAW(ctxt->input_rc));
     831            gnutls_transport_set_errno(ctxt->session,
     832                                       EAI_APR_TO_RAW(ctxt->input_rc));
    835833            return -1;
    836834        }
Note: See TracChangeset for help on using the changeset viewer.