Skip to content
Snippets Groups Projects
Commit 26620ecc authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Comment added: isc_getraddress may return NULL, and we don't handle it.

parent 27c569f3
Branches
Tags 0.1
No related merge requests found
...@@ -80,6 +80,7 @@ isc_tcp_accept_fn(IscHandlerList *UNUSED(hl), ...@@ -80,6 +80,7 @@ isc_tcp_accept_fn(IscHandlerList *UNUSED(hl),
/* Fill in the session info structure */ /* Fill in the session info structure */
new_scb->state = ISC_STATE_RUNNING; new_scb->state = ISC_STATE_RUNNING;
new_scb->mode = O_RDWR; new_scb->mode = O_RDWR;
/* FIXME: isc_getraddress may return NULL. Should we fail then? */
new_scb->info.tcp.raddr = isc_getraddress(new_scb); new_scb->info.tcp.raddr = isc_getraddress(new_scb);
new_scb->info.tcp.laddr = isc_getladdress(new_scb); new_scb->info.tcp.laddr = isc_getladdress(new_scb);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment