Changeset 73b0bf0 in mod_gnutls


Ignore:
Timestamp:
Nov 21, 2015, 9:16:00 AM (2 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
master, debian, jessie-backports, upstream
Children:
dc058b8
Parents:
a2368a4
Message:

mgs_filter_input: Use APR_STATUS_IS macros instead of integer comparison

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_io.c

    r2ceb836 r73b0bf0  
    597597    {
    598598        /* no data for nonblocking read, return APR_EAGAIN */
    599         if ((block == APR_NONBLOCK_READ) && (status == APR_EINTR))
     599        if ((block == APR_NONBLOCK_READ) && APR_STATUS_IS_EINTR(status))
    600600            return APR_EAGAIN;
    601601
    602602        /* Close TLS session and free resources on EOF,
    603603         * gnutls_io_filter_error will add an EOS bucket */
    604         if (status == APR_EOF)
     604        if (APR_STATUS_IS_EOF(status))
    605605            mgs_bye(ctxt);
    606606
Note: See TracChangeset for help on using the changeset viewer.