aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-05-01 08:13:47 -0400
committerJack Lloyd <[email protected]>2019-05-01 08:13:47 -0400
commit7fe0d20bbc7bc4dc831f396cdc55bf8547d3f4bf (patch)
tree76e3edcc2f5f6884ac9f7432f4b6e525fe443e4d /src
parent720e9a2add1431f1a93badb9d02b02ca38d0f461 (diff)
parent0d4d5c4e7f2d94e4c5035694707ebab982bd0c72 (diff)
Merge rest of GH #1924 Fix tls_server DTLS on Linux
Diffstat (limited to 'src')
-rw-r--r--src/cli/tls_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/tls_server.cpp b/src/cli/tls_server.cpp
index 1527f30df..c6832582b 100644
--- a/src/cli/tls_server.cpp
+++ b/src/cli/tls_server.cpp
@@ -135,7 +135,7 @@ class TLS_Server final : public Command, public Botan::TLS::Callbacks
peek_len = sizeof(dummy);
#endif
- if(::recvfrom(server_fd, peek_buf, peek_len, MSG_PEEK, reinterpret_cast<struct sockaddr*>(&from), &from_len) != 0)
+ if(::recvfrom(server_fd, static_cast<char*>(peek_buf), peek_len, MSG_PEEK, reinterpret_cast<struct sockaddr*>(&from), &from_len) != 0)
{
throw CLI_Error("Could not peek next packet");
}