From 60ca9c768a725a387bbe014eb9d77d0304b7d281 Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 6 Jun 2009 16:58:37 +0000 Subject: - rework r4500: resolve_fcache() seems only required in where() [thanks to wens] git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4503 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 54f714d5..6bf6216a 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -921,6 +921,8 @@ where(const char *from) int i; uint32_t ipaddr = ipstr2int(from); + resolve_fcache(); + for (i = 0; i < SHM->home_num; i++) { if ((SHM->home_ip[i] & SHM->home_mask[i]) == (ipaddr & SHM->home_mask[i])) { return i; @@ -1139,9 +1141,6 @@ user_login(void) /* NOTE! 在 setup_utmp 之前, 不應該有任何 blocking/slow function, * 否則可藉機 race condition 達到 multi-login */ - // XXX resolve_fcache 不就會 blcok/slow 了...!? - resolve_fcache(); - /* resolve_boards(); */ numboards = SHM->Bnumber; -- cgit v1.2.3