#include <afsconfig.h>
#include <afs/param.h>
+#include <afs/stds.h>
#include <roken.h>
# pragma GCC diagnostic warning "-Wdeprecated-declarations"
#endif
-#include <afs/stds.h>
-#include <afs/pthread_glock.h>
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/file.h>
-#include <sys/time.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#endif
-#include <string.h>
-#include <stdio.h>
-
#define HC_DEPRECATED
#include <hcrypto/des.h>
#include <rx/rxkad.h>
#include <rx/rx.h>
+#include <afs/pthread_glock.h>
+
#include "cellconfig.h"
#include "keys.h"
#include "ktc.h"
* explicitly requested. Check for this, and bail out if we
* get one. Note that this leaks a security object at present
*/
- if (scIndex == RX_SECIDX_NULL) {
+ if (*scIndex == RX_SECIDX_NULL) {
sc = NULL;
code = AFSCONF_NOTFOUND;
goto out;