must zero osiSockAddr prior to use!
RTEMS depends on this or eg. bind() will fail because comparison with list of interface addresses is done with memcmp()!
This commit is contained in:
@@ -89,6 +89,7 @@ bool Configuration::getPropertyAsAddress(const std::string& name, osiSockAddr* a
|
||||
|
||||
if(val.empty()) return false;
|
||||
|
||||
memset(addr, 0, sizeof(*addr));
|
||||
addr->ia.sin_family = AF_INET;
|
||||
if(aToIPAddr(val.c_str(), dftport, &addr->ia))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user