Commit e1582a7f authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

init SocketAddress::port_ in default-ctor

Summary: The port is not accessed in such a state, but nevertheless zero it.

Differential Revision: D28155314

fbshipit-source-id: 0ee6a617be5de66d1e068c242d52423adb31f486
parent cf5906ec
......@@ -595,7 +595,7 @@ class SocketAddress {
AddrStorage() : addr() {}
} storage_{};
// IPAddress class does nto save zone or port, and must be saved here
uint16_t port_;
uint16_t port_{0};
bool external_{false};
};
......
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