Fix compile error for SO_PEERCRED

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14560 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Luke Howard
2005-02-03 12:39:37 +00:00
parent 77ebf59fe4
commit 63aae9c6e8

View File

@@ -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;