| Index: net/spdy/spdy_headers_block_parser.cc
|
| diff --git a/net/spdy/spdy_headers_block_parser.cc b/net/spdy/spdy_headers_block_parser.cc
|
| index 10057dda770bc32e3f331f74cc490605e4e695f5..27f52e8b24afe3cd7a80edf1bb0562056828ece6 100644
|
| --- a/net/spdy/spdy_headers_block_parser.cc
|
| +++ b/net/spdy/spdy_headers_block_parser.cc
|
| @@ -168,9 +168,11 @@ void SpdyHeadersBlockParser::ParseLength(Reader* reader,
|
| }
|
| // Convert from network to host order and return the parsed out integer.
|
| if (length_field_size_ == sizeof(uint32_t)) {
|
| - *parsed_length = ntohl(*reinterpret_cast<const uint32_t *>(buffer));
|
| + *parsed_length =
|
| + base::NetToHost32(*reinterpret_cast<const uint32_t *>(buffer));
|
| } else {
|
| - *parsed_length = ntohs(*reinterpret_cast<const uint16_t *>(buffer));
|
| + *parsed_length =
|
| + base::NetToHost16(*reinterpret_cast<const uint16_t *>(buffer));
|
| }
|
| }
|
|
|
|
|