Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
2ce964b9
Commit
2ce964b9
authored
20 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Ensure getaddrinfo_all returns null result on failure.
parent
e295c55f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/libpq/ip.c
+5
-2
5 additions, 2 deletions
src/backend/libpq/ip.c
with
5 additions
and
2 deletions
src/backend/libpq/ip.c
+
5
−
2
View file @
2ce964b9
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/ip.c,v 1.2
4
200
3/11/29 19:51:49 pgsq
l Exp $
* $PostgreSQL: pgsql/src/backend/libpq/ip.c,v 1.2
5
200
4/04/24 20:10:34 tg
l Exp $
*
* This file and the IPV6 implementation were initially provided by
* Nigel Kukard <nkukard@lbsd.net>, Linux Based Systems Design
...
...
@@ -67,8 +67,11 @@ static int getnameinfo_unix(const struct sockaddr_un * sa, int salen,
*/
int
getaddrinfo_all
(
const
char
*
hostname
,
const
char
*
servname
,
const
struct
addrinfo
*
hintp
,
struct
addrinfo
**
result
)
const
struct
addrinfo
*
hintp
,
struct
addrinfo
**
result
)
{
/* not all versions of getaddrinfo() zero *result on failure */
*
result
=
NULL
;
#ifdef HAVE_UNIX_SOCKETS
if
(
hintp
!=
NULL
&&
hintp
->
ai_family
==
AF_UNIX
)
return
getaddrinfo_unix
(
servname
,
hintp
,
result
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment