Changeset 9a09212 in mainline for uspace/lib/http/src/headers.c


Ignore:
Timestamp:
2017-12-04T20:22:45Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
82d515e9
Parents:
0fb1755
Message:

Libhttp should not mix error codes and number of bytes transferred.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/http/src/headers.c

    r0fb1755 r9a09212  
    146146                        continue;
    147147               
    148                 rc = recv_discard(rb, (c == '\r' ? '\n' : '\r'));
    149                 if (rc < 0)
     148                size_t nrecv;
     149                rc = recv_discard(rb, (c == '\r' ? '\n' : '\r'), &nrecv);
     150                if (rc != EOK)
    150151                        return rc;
    151152               
Note: See TracChangeset for help on using the changeset viewer.