spooky000 created ZOOKEEPER-2492:
------------------------------------
Summary: gethostname return error before Win32WSAStartup on
windows.
Key: ZOOKEEPER-2492
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2492
Project: ZooKeeper
Issue Type: Bug
Affects Versions: 3.5.2
Environment: windows
Reporter: spooky000
Priority: Trivial
Fix For: 3.5.3
gethostname return error before Win32WSAStartup on windows.
in log_env function.
gethostname(buf, sizeof(buf));
LOG_INFO(LOGCALLBACK(zh), "Client environment:host.name=%s", buf);
buf will be uninitialized buffer.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)