diff options
author | Tom Yu <tlyu@mit.edu> | 2004-09-21 18:20:16 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2004-09-21 18:20:16 +0000 |
commit | ac8eb05c5bae434c5da93b417d32b0ecfdb642e4 (patch) | |
tree | ad6a5234c0ae45a9c775025cb80e605b7709a3db /src/lib/rpc/svc_tcp.c | |
parent | 54ba1d03b1c26b25f6c23fdd0c7ba58c7d9e2066 (diff) | |
download | krb5-ac8eb05c5bae434c5da93b417d32b0ecfdb642e4.zip krb5-ac8eb05c5bae434c5da93b417d32b0ecfdb642e4.tar.gz krb5-ac8eb05c5bae434c5da93b417d32b0ecfdb642e4.tar.bz2 |
* configure.in: Check for sockaddr_in.sin_len and
sockaddr.sa_len. Check for sys/param.h in case we need NBBY
somewhere.
* auth.h, svc_auth.h: Namespace cleanup.
* svc.h, rpc_commondata.c: New global svc_maxfd.
* svc.c (svc_getreqset): Break inner part of loop out into
local function svc_do_xprt(). Don't use rpc_dtablesize();
instead, use svc_maxfd.
* svc_run.c: Don't use rpc_dtablesize().
* clnt_generic.c, clnt_simple.c, getrpcport.c:
* svc_tcp.c, svc_udp.c: Set sockaddr_in.sin_len when available.
* ovsec_kadmd.c (kadm_svc_run): Don't use rpc_dtablesize().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16770 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/rpc/svc_tcp.c')
-rw-r--r-- | src/lib/rpc/svc_tcp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/rpc/svc_tcp.c b/src/lib/rpc/svc_tcp.c index 95ab9fe..ce9bb35 100644 --- a/src/lib/rpc/svc_tcp.c +++ b/src/lib/rpc/svc_tcp.c @@ -145,6 +145,9 @@ svctcp_create( madesock = TRUE; } memset((char *)&addr, 0, sizeof (addr)); +#if HAVE_STRUCT_SOCKADDR_IN_SIN_LEN + addr.sin_len = sizeof(addr); +#endif addr.sin_family = AF_INET; if (bindresvport(sock, &addr)) { addr.sin_port = 0; @@ -338,7 +341,7 @@ readtcp( do { readfds = mask; tout = wait_per_try; - if (select(gssrpc__rpc_dtablesize(), &readfds, (fd_set*)NULL, + if (select(sock + 1, &readfds, (fd_set*)NULL, (fd_set*)NULL, &tout) <= 0) { if (errno == EINTR) { continue; |