Commit 4d228c4a authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Include prot-a-parse.h and kom-errno.h.

(call_function): Treat illegal_fnc specially: set kom_errno to
	KOM_NOT_IMPL and return FAILURE.
parent 674d898b
/*
* $Id: connections.c,v 0.44 1996/07/28 23:43:21 ceder Exp $
* $Id: connections.c,v 0.45 1996/08/01 18:31:27 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -30,7 +30,7 @@
* Created by Willf|r 31/3-90. Mostly written by ceder.
*/
static char *rcsid = "$Id: connections.c,v 0.44 1996/07/28 23:43:21 ceder Exp $";
static char *rcsid = "$Id: connections.c,v 0.45 1996/08/01 18:31:27 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -74,6 +74,7 @@ USE(rcsid);
#include "mux.h"
#include "isc-parse.h"
#include "prot-a.h"
#include "prot-a-parse.h"
#include "server/smalloc.h"
#include "end-of-atomic.h"
#include "mux-parse.h"
......@@ -82,6 +83,7 @@ USE(rcsid);
#include "rfc931.h"
#include "param.h"
#include "config.h"
#include "kom-errno.h"
IscMaster * kom_server_mcb = NULL;
Connection * active_connection = NULL;
......@@ -211,7 +213,13 @@ call_function (Connection * client,
log("call_function(%ld): active_connection = %ld",
client->session_no, active_connection->session_no);
}
if (client->function == illegal_fnc)
{
kom_errno = KOM_NOT_IMPL;
return FAILURE;
}
active_connection = client;
service_statistics[client->function]++;
......
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