Commit d8b48642 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(shutdown_kom): Get the host name from the isc_scb, now that the

	information is no longer stored in the connection.
parent f8c95599
/*
* $Id: admin.c,v 0.56 2003/07/15 22:48:29 ceder Exp $
* $Id: admin.c,v 0.57 2003/08/05 09:51:38 ceder Exp $
* Copyright (C) 1991, 1993-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -38,6 +38,8 @@
#include "timewrap.h"
#include <signal.h>
#include "oop.h"
#include "misc-types.h"
#include "s-string.h"
#include "kom-types.h"
......@@ -57,6 +59,7 @@
#include "aux-items.h"
#include "unused.h"
#include "sigflags.h"
#include "isc-interface.h"
/* All of the fields in this structure except the version number
is set from the configuration file at startup (see ramkomd.c).
......@@ -349,7 +352,7 @@ shutdown_kom (int UNUSED(exit_val))
name = s_crea_c_str (active_connection->username);
user = s_crea_c_str (active_connection->ident_user);
host = s_crea_c_str (active_connection->hostname);
host = s_crea_c_str (active_connection->isc_session->remote);
kom_log("shutdown initiated by person %d (%s) via %s@%s.\n",
ACTPERS, name, user, host);
string_free(host);
......
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