From 41a8c83eb4a16dcbb6a35910e5a38c7849845f92 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 28 Oct 1999 17:27:54 +0000 Subject: [PATCH] dont send an exception to client when bad request received over udp --- src/rsrv/camessage.c | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/src/rsrv/camessage.c b/src/rsrv/camessage.c index 52a076e5e..c771ee3e1 100644 --- a/src/rsrv/camessage.c +++ b/src/rsrv/camessage.c @@ -312,14 +312,14 @@ unsigned lineno } /* - * bad_msg_action() + * bad_tcp_cmd_action() */ -LOCAL int bad_msg_action( -caHdr *mp, -struct client *client, -const char *pCtx +LOCAL int bad_tcp_cmd_action( +caHdr *mp, +struct client *client ) { + const char *pCtx = "invalid (damaged?) request code from TCP"; log_header (pCtx, client, mp, 0); /* @@ -333,17 +333,6 @@ const char *pCtx return ERROR; } -/* - * bad_tcp_cmd_action() - */ -LOCAL int bad_tcp_cmd_action( -caHdr *mp, -struct client *client -) -{ - return bad_msg_action (mp, client, "bad (damaged?) TCP request id"); -} - /* * bad_udp_cmd_action() */ @@ -352,7 +341,8 @@ caHdr *mp, struct client *client ) { - return bad_msg_action (mp, client, "bad (damaged?) UDP request id"); + log_header ("invalid (damaged?) request code from UDP", client, mp, 0); + return ERROR; } /*