From 63aae9c6e877350560e18c9db516730709c36790 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Thu, 3 Feb 2005 12:39:37 +0000 Subject: [PATCH] Fix compile error for SO_PEERCRED git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14560 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kcm/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kcm/connect.c b/kcm/connect.c index db0964f8e..4162be488 100644 --- a/kcm/connect.c +++ b/kcm/connect.c @@ -86,7 +86,7 @@ update_client_creds(int s, kcm_client *peer) socklen_t pclen; struct ucred pc; - if (getsockopt(d[index].s, SOL_SOCKET, SO_PEERCRED, (void *)&pc, + if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, (void *)&pc, &pclen) != 0) { krb5_warn(kcm_context, errno, "failed to determine peer identity"); return 1;