From 9505008e9c51824acfd2177e3b7e89318b836e41 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Thu, 3 Feb 2005 12:50:12 +0000 Subject: [PATCH] fix more SO_PEERCRED breakage git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14561 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 4162be488..b9ebee670 100644 --- a/kcm/connect.c +++ b/kcm/connect.c @@ -83,8 +83,8 @@ update_client_creds(int s, kcm_client *peer) { #ifdef SO_PEERCRED { - socklen_t pclen; struct ucred pc; + socklen_t pclen = sizeof(pc); if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, (void *)&pc, &pclen) != 0) {