Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
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
Lach
SRB2
Commits
7285f9ff
Commit
7285f9ff
authored
6 years ago
by
Alam Ed Arias
Browse files
Options
Downloads
Patches
Plain Diff
Netcode: handle NULL in addrinfo lookup
parent
0ed9665a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/i_tcp.c
+1
-1
1 addition, 1 deletion
src/i_tcp.c
with
1 addition
and
1 deletion
src/i_tcp.c
+
1
−
1
View file @
7285f9ff
...
@@ -1310,7 +1310,7 @@ void I_ShutdownTcpDriver(void)
...
@@ -1310,7 +1310,7 @@ void I_ShutdownTcpDriver(void)
static
SINT8
SOCK_NetMakeNodewPort
(
const
char
*
address
,
const
char
*
port
)
static
SINT8
SOCK_NetMakeNodewPort
(
const
char
*
address
,
const
char
*
port
)
{
{
SINT8
newnode
=
-
1
;
SINT8
newnode
=
-
1
;
struct
my_addrinfo
*
ai
,
*
runp
,
hints
;
struct
my_addrinfo
*
ai
=
NULL
,
*
runp
,
hints
;
int
gaie
;
int
gaie
;
if
(
!
port
||
!
port
[
0
])
if
(
!
port
||
!
port
[
0
])
...
...
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