From 45f48562be5b65c0d8721a2de10f881ebb2dd59f Mon Sep 17 00:00:00 2001 From: "Kevin L. Mitchell" Date: Thu, 4 Mar 2010 13:52:35 +0000 Subject: [PATCH] Set TOS to the value of FEAT_TOS_SERVER, not to FEAT_TOS_SERVER... git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1944 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/s_bsd.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3faf098..9c9177b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-03-04 Kevin L. Mitchell + + * ircd/s_bsd.c: use feature_int() to get the integer value of the + feature...and don't try to set the TOS to its index! + 2010-02-02 Michael Poole * include/patchlevel.h (PATCHLEVEL): Bump to (u2.10.12.)13-rc2. diff --git a/ircd/s_bsd.c b/ircd/s_bsd.c index 2d8fb5b..7e3205a 100644 --- a/ircd/s_bsd.c +++ b/ircd/s_bsd.c @@ -238,7 +238,7 @@ static int connect_inet(struct ConfItem* aconf, struct Client* cptr) /* * Set the TOS bits - this is nonfatal if it doesn't stick. */ - if (!os_set_tos(cli_fd(cptr), FEAT_TOS_SERVER)) { + if (!os_set_tos(cli_fd(cptr), feature_int(FEAT_TOS_SERVER))) { report_error(TOS_ERROR_MSG, cli_name(cptr), errno); } if ((result = os_connect_nonb(cli_fd(cptr), &aconf->address)) == IO_FAILURE) { -- 2.20.1