Changeset 6391


Ignore:
Timestamp:
Jul 23, 2008, 7:29:21 PM (15 years ago)
Author:
charles
Message:

possible fix for softwareelves' error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/third-party/shttpd/shttpd.c

    r6349 r6391  
    899899
    900900        /* Read from underlying channel */
    901         n = stream->io_class->read(stream, io_space(&stream->io), len);
     901        if( stream->io_class )
     902            n = stream->io_class->read(stream, io_space(&stream->io), len);
     903        else
     904            n = 0;
    902905
    903906        if (n > 0)
     
    937940
    938941        /* TODO: should be assert on CAN_WRITE flag */
    939         n = to->io_class->write(to, io_data(&from->io), len);
     942        if( to->io_class )
     943            n = to->io_class->write(to, io_data(&from->io), len);
     944        else
     945            n = 0;
     946
    940947        to->conn->expire_time = current_time + EXPIRE_TIME;
    941948        DBG(("write_stream (%d %s): written %d/%d bytes (errno %d)",
Note: See TracChangeset for help on using the changeset viewer.