KWSys 2012-11-08 (3b17de34)
Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 3b17de34 | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' df32fa6f..3b17de34 Brad King (1): 3b17de34 SystemInformation: Do not dereference NULL ifa_addr Change-Id: I2aecf9978d1f66ed021f47620d176a3837bc2ea3
This commit is contained in:
parent
cd83da97a7
commit
4cf44d3621
|
@ -1323,7 +1323,7 @@ int SystemInformationImplementation::GetFullyQualifiedDomainName(
|
||||||
|
|
||||||
for (ifa=ifas; ifa!=NULL; ifa=ifa->ifa_next)
|
for (ifa=ifas; ifa!=NULL; ifa=ifa->ifa_next)
|
||||||
{
|
{
|
||||||
int fam=ifa->ifa_addr->sa_family;
|
int fam = ifa->ifa_addr? ifa->ifa_addr->sa_family : -1;
|
||||||
if ((fam==AF_INET) || (fam==AF_INET6))
|
if ((fam==AF_INET) || (fam==AF_INET6))
|
||||||
{
|
{
|
||||||
char host[NI_MAXHOST]={'\0'};
|
char host[NI_MAXHOST]={'\0'};
|
||||||
|
|
Loading…
Reference in New Issue