diff options
author | Simon Rettberg | 2020-06-30 11:21:31 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-06-30 11:21:31 +0200 |
commit | dcece877215a0d909553ae9301a02d031b37b715 (patch) | |
tree | 3f17d4372cc380fe9c567c0d0708d02888a9a615 /src | |
parent | get-version: Fallback to commit hash if git describe fails (diff) | |
download | dnbd3-dcece877215a0d909553ae9301a02d031b37b715.tar.gz dnbd3-dcece877215a0d909553ae9301a02d031b37b715.tar.xz dnbd3-dcece877215a0d909553ae9301a02d031b37b715.zip |
[SHARED] Fix 16 byte information leakage in select image message
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/protocol.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/shared/protocol.h b/src/shared/protocol.h index 2b21c21..05fd2bf 100644 --- a/src/shared/protocol.h +++ b/src/shared/protocol.h @@ -69,10 +69,8 @@ static inline bool dnbd3_select_image(int sock, const char *name, uint16_t rid, request.magic = dnbd3_packet_magic; request.cmd = CMD_SELECT_IMAGE; request.size = (uint32_t)len; -#ifdef _DEBUG request.handle = 0; request.offset = 0; -#endif fixup_request( request ); iov[0].iov_base = &request; iov[0].iov_len = sizeof(request); |