TAILQ_INIT(&clnt_list);
/* Eventually plan to grow/shrink poll array: */
pollsize = FD_ALLOC_BLOCK;
- if (getrlimit(RLIMIT_NOFILE, &rlim) < 0 &&
+ if (getrlimit(RLIMIT_NOFILE, &rlim) == 0 &&
rlim.rlim_cur != RLIM_INFINITY)
pollsize = rlim.rlim_cur;
pollarray = calloc(pollsize, sizeof(struct pollfd));
out:
if (token.value)
free(token.value);
-#ifndef HAVE_LIBTIRPC
+#ifdef HAVE_AUTHGSS_FREE_PRIVATE_DATA
if (pd.pd_ctx_hndl.length != 0)
authgss_free_private_data(&pd);
#endif