diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-13 00:07:39 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-13 00:07:39 +0800 |
commit | 172aadf47091fcbb431a9dd06aa8fadcac29257b (patch) | |
tree | 09ff5f309bf4f4d48fb5ab59b13f891b04b617b7 /cacheserver | |
parent | 84804c11c84cb38864e011e42a67346a78b06233 (diff) | |
download | pttbbs-172aadf47091fcbb431a9dd06aa8fadcac29257b.tar pttbbs-172aadf47091fcbb431a9dd06aa8fadcac29257b.tar.gz pttbbs-172aadf47091fcbb431a9dd06aa8fadcac29257b.tar.bz2 pttbbs-172aadf47091fcbb431a9dd06aa8fadcac29257b.tar.lz pttbbs-172aadf47091fcbb431a9dd06aa8fadcac29257b.tar.xz pttbbs-172aadf47091fcbb431a9dd06aa8fadcac29257b.tar.zst pttbbs-172aadf47091fcbb431a9dd06aa8fadcac29257b.zip |
close socket if read fail
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3285 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'cacheserver')
-rw-r--r-- | cacheserver/utmpserver.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cacheserver/utmpserver.c b/cacheserver/utmpserver.c index 05a5ccfd..680a65d8 100644 --- a/cacheserver/utmpserver.c +++ b/cacheserver/utmpserver.c @@ -213,6 +213,8 @@ int main(int argc, char **argv) /* cfd will be closed in processlogin() */ processlogin(cfd, uid, index); + } else { + close(cfd); } } return 0; |