Commit 7d1d4b02 authored by Per Cederqvist's avatar Per Cederqvist

(isc_tcp_accept_fn): Don't set scb->mode. Fail properly if

	isc_getraddress() fails.
parent af51afc8
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment