dont send exception message if bad request received over UDP

This commit is contained in:
Jeff Hill
1999-10-28 17:18:25 +00:00
parent 2d963d94fe
commit 599ec27356

View File

@@ -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;
}
/*