Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
7d1d4b02
Commit
7d1d4b02
authored
Sep 03, 2000
by
Per Cederqvist
Browse files
(isc_tcp_accept_fn): Don't set scb->mode. Fail properly if
isc_getraddress() fails.
parent
af51afc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libraries/libisc-new/src/isc_tcp.c
View file @
7d1d4b02
...
...
@@ -79,9 +79,12 @@ isc_tcp_accept_fn(IscHandlerList *UNUSED(hl),
/* Fill in the session info structure */
new_scb
->
state
=
ISC_STATE_RUNNING
;
new_scb
->
mode
=
O_RDWR
;
/* FIXME: isc_getraddress may return NULL. Should we fail then? */
new_scb
->
info
.
tcp
.
raddr
=
isc_getraddress
(
new_scb
);
if
(
new_scb
->
info
.
tcp
.
raddr
==
NULL
)
{
isc_destroy
(
NULL
,
scb
);
return
NULL
;
}
new_scb
->
info
.
tcp
.
laddr
=
isc_getladdress
(
new_scb
);
return
new_scb
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment