Commit 9ffe7d47 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[4252] CID 1321678. Initialize sockaddr_storage.

parent 4e592c59
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2011-2016 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
......@@ -279,6 +279,9 @@ struct SocketSessionReceiver::ReceiverImpl {
header_buf_(DEFAULT_HEADER_BUFLEN),
data_buf_(INITIAL_BUFSIZE)
{
memset(&ss_local_, 0, sizeof(ss_local_));
memset(&ss_remote_, 0, sizeof(ss_remote_));
if (setsockopt(fd_, SOL_SOCKET, SO_RCVBUF, &SOCKSESSION_BUFSIZE,
sizeof(SOCKSESSION_BUFSIZE)) == -1) {
isc_throw(SocketSessionError,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment