diff options
author | Luke Howard <lukeh@padl.com> | 2008-11-25 06:14:48 +0000 |
---|---|---|
committer | Luke Howard <lukeh@padl.com> | 2008-11-25 06:14:48 +0000 |
commit | 633449e156a043393ca84ef8fce6ca9e3713c15e (patch) | |
tree | 75fdd0f13844d78dc0d522ac0ad176d14cce4790 | |
parent | 33042333343514fabe4aedf3f7e291b65cc8073c (diff) | |
download | krb5-633449e156a043393ca84ef8fce6ca9e3713c15e.zip krb5-633449e156a043393ca84ef8fce6ca9e3713c15e.tar.gz krb5-633449e156a043393ca84ef8fce6ca9e3713c15e.tar.bz2 |
More cleanup
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/mskrb-integ@21190 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/kadmin/server/network.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/kadmin/server/network.c b/src/kadmin/server/network.c index edeb5ce..0b3716d 100644 --- a/src/kadmin/server/network.c +++ b/src/kadmin/server/network.c @@ -1894,6 +1894,11 @@ static void accept_rpc_connection(void *handle, struct connection *conn, fd_set fds; register int s; + assert(selflags & SSF_READ); + + if ((selflags & SSF_READ) == 0) + return; + sockdata.prog = prog; sockdata.retval = 0; @@ -1928,8 +1933,6 @@ static void accept_rpc_connection(void *handle, struct connection *conn, sstate.max = s + 1; } } - - return; } static void process_rpc_connection(void *handle, struct connection *conn, @@ -1939,15 +1942,16 @@ static void process_rpc_connection(void *handle, struct connection *conn, assert(selflags & SSF_READ); - if (selflags & SSF_READ) { - FD_ZERO(&fds); - FD_SET(conn->fd, &fds); + if ((selflags & SSF_READ) == 0) + return; - svc_getreqset(&fds); + FD_ZERO(&fds); + FD_SET(conn->fd, &fds); - if (!FD_ISSET(conn->fd, &svc_fdset)) - kill_tcp_or_rpc_connection(handle, conn, 0); - } + svc_getreqset(&fds); + + if (!FD_ISSET(conn->fd, &svc_fdset)) + kill_tcp_or_rpc_connection(handle, conn, 0); } #endif /* INET */ |