From 599ec273560ea407ff67dc770dcab934275f0c8c Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 28 Oct 1999 17:18:25 +0000 Subject: [PATCH] dont send exception message if 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 b79a62315..8b7b35c40 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; } /*