Commit 5cf83c36 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(server_init): Use the address stored in listen_client->laddr instead

	of calling isc_getladdress().
parent a615eb0b
/*
* $Id: ramkomd.c,v 0.123 2003/08/02 20:44:49 ceder Exp $
* $Id: ramkomd.c,v 0.124 2003/08/03 20:17:40 ceder Exp $
* Copyright (C) 1991-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -170,7 +170,6 @@ static void
server_init(const char *host, const char * client_port)
{
struct isc_scb *listen_client;
union isc_address *isc_adr = NULL;
oop_source *src;
#ifdef HAVE_STRUCT_SIGACTION
struct sigaction act;
......@@ -243,14 +242,9 @@ server_init(const char *host, const char * client_port)
if (listen_client == NULL)
restart_kom("server_init: can't isc_listentcp(CLIENT)\n");
isc_adr = isc_getladdress (listen_client);
if (isc_adr == NULL)
restart_kom("server_init(): can't isc_getladdress (listen_client)\n");
kom_log("Listening for clients on %d.\n", isc_getportnum(isc_adr));
isc_freeaddress (isc_adr);
kom_log("Listening for clients on %d.\n",
isc_getportnum(listen_client->laddr));
/*
* Ignore SIGPIPE, which the server gets if it tries to write to a
* socket and the client has died. The server will anyhow handle
......
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