aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/tls_server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/tls_server.cpp')
-rw-r--r--src/cmd/tls_server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/tls_server.cpp b/src/cmd/tls_server.cpp
index 819b9f380..dac69e2c1 100644
--- a/src/cmd/tls_server.cpp
+++ b/src/cmd/tls_server.cpp
@@ -159,13 +159,13 @@ int tls_server_main(int argc, char* argv[])
int fd;
if(transport == "tcp")
- fd = ::accept(server_fd, NULL, NULL);
+ fd = ::accept(server_fd, nullptr, nullptr);
else
{
struct sockaddr_in from;
socklen_t from_len = sizeof(sockaddr_in);
- if(::recvfrom(server_fd, NULL, 0, MSG_PEEK,
+ if(::recvfrom(server_fd, nullptr, 0, MSG_PEEK,
(struct sockaddr*)&from, &from_len) != 0)
throw std::runtime_error("Could not peek next packet");