Fixed check_readwrite test to pass correct handle to fd_write_reply

The (char*) cast to resp->received.handle.b was causing a segfault
This commit is contained in:
Patrick J Cherry
2016-10-06 14:01:47 +01:00
parent 3f01b77221
commit 6505588f25

View File

@@ -57,7 +57,7 @@ void * responder( void *respond_uncast )
fd_write_reply( sock_fd, wrong_handle, 0 );
}
else {
fd_write_reply( sock_fd, (char*)resp->received.handle.b, 0 );
fd_write_reply( sock_fd, resp->received.handle.w, 0 );
}
write( sock_fd, "12345678", 8 );
}