diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-07 00:58:37 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-07 00:58:37 +0800 |
commit | 60ca9c768a725a387bbe014eb9d77d0304b7d281 (patch) | |
tree | 8abd84a7b63751b3490657e94b40b7e8d5b3a87b /mbbsd/mbbsd.c | |
parent | cc2292a5e07978d22f14da9773df3e0715463eb7 (diff) | |
download | pttbbs-60ca9c768a725a387bbe014eb9d77d0304b7d281.tar pttbbs-60ca9c768a725a387bbe014eb9d77d0304b7d281.tar.gz pttbbs-60ca9c768a725a387bbe014eb9d77d0304b7d281.tar.bz2 pttbbs-60ca9c768a725a387bbe014eb9d77d0304b7d281.tar.lz pttbbs-60ca9c768a725a387bbe014eb9d77d0304b7d281.tar.xz pttbbs-60ca9c768a725a387bbe014eb9d77d0304b7d281.tar.zst pttbbs-60ca9c768a725a387bbe014eb9d77d0304b7d281.zip |
- 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
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r-- | mbbsd/mbbsd.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; |