Fixed long-standing bug with h2r functions being back to front

h2r seemd to be using beXXtoh functions instead of htobeXX.  Foruntately
ROT13 works symmetrically on our systems..!
This commit is contained in:
Patrick J Cherry
2018-02-05 16:16:17 +00:00
parent d1dc7392c2
commit ad2014ac9d
2 changed files with 16 additions and 16 deletions

View File

@@ -471,8 +471,8 @@ int proxy_read_from_downstream( struct proxier *proxy, int state )
if ( proxy->req.needle == proxy->req.size ) {
debug(
"Received NBD request from downstream. type=%"PRIu32" from=%"PRIu64" len=%"PRIu32,
request->type, request->from, request->len
"Received NBD request from downstream. type=%"PRIu16" flags=%"PRIu16" from=%"PRIu64" len=%"PRIu32,
request->type, request->flags, request->from, request->len
);
/* Finished reading, so advance state. Leave size untouched so the next