diff --git a/kcm/connect.c b/kcm/connect.c index dc51fe0f2..36be404f9 100644 --- a/kcm/connect.c +++ b/kcm/connect.c @@ -349,8 +349,8 @@ do_request(void *buf, size_t len, struct descr *d) (int)d->peercred.pid); memset (&msghdr, 0, sizeof(msghdr)); - msghdr.msg_name = d->sa; - msghdr.msg_namelen = d->sock_len; + msghdr.msg_name = NULL; + msghdr.msg_namelen = 0; msghdr.msg_iov = iov; msghdr.msg_iovlen = sizeof(iov)/sizeof(*iov); #if 0 @@ -370,7 +370,7 @@ do_request(void *buf, size_t len, struct descr *d) if (sendmsg (d->s, &msghdr, 0) < 0) { kcm_log (0, "sendmsg(%d): %d %s", (int)d->peercred.pid, - strerror(errno)); + errno, strerror(errno)); krb5_data_free(&reply); return; }