… | … | ||
---|---|---|---|
82 | 82 | ||
83 | if (read (fd, &req, sizeof (req)) == sizeof (req)) | 83 | if (read (fd, &req, sizeof (req)) == sizeof (req)) |
84 | { | 84 | { |
85 | if (req.magic == htonl (NBD_REQUEST_MAGIC)) | 85 | if (req.magic == htonl (NBD_REQUEST_MAGIC)) |
86 | { | 86 | { |
87 | req.type = htonl (req.type); | ||
88 | |||
87 | if (req.type < 2) | 89 | if (req.type < 2) |
88 | { | 90 | { |
89 | u64 from = ntohll (req.from); | 91 | u64 from = ntohll (req.from); |
90 | 92 | ||
91 | PUSHMARK (SP); | 93 | PUSHMARK (SP); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |