Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc15ed8b

Browse files
committed
raw
1 parenteeaf525 commitc15ed8b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎contrib/pg_exchange/nodeDistPlanExec.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,10 +706,14 @@ get_hostname(const char *sipaddr)
706706
char*hostname;
707707
structaddrinfohintp;
708708
structaddrinfo*result;
709-
710709
structsockaddr_storagesaddr;
711710
intres;
712711

712+
MemSet(&hintp,0,sizeof(hintp));
713+
hintp.ai_socktype=SOCK_STREAM;
714+
hintp.ai_family=AF_UNSPEC;
715+
hintp.ai_flags=AI_ALL;
716+
713717
if ((res=pg_getaddrinfo_all(sipaddr,NULL,&hintp,&result))!=0)
714718
elog(FATAL,"Cannot resolve network address %s, error=%d.",sipaddr,res);
715719
memcpy(&saddr,result->ai_addr,result->ai_addrlen);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp