* kcm/connect.c: fix arguments to kcm_log() when reporting
sendmsg() error * kcm/connect.c: don't send socket address in msghdr, it returns an already connected error on Linux git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15517 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -349,8 +349,8 @@ do_request(void *buf, size_t len, struct descr *d)
|
|||||||
(int)d->peercred.pid);
|
(int)d->peercred.pid);
|
||||||
|
|
||||||
memset (&msghdr, 0, sizeof(msghdr));
|
memset (&msghdr, 0, sizeof(msghdr));
|
||||||
msghdr.msg_name = d->sa;
|
msghdr.msg_name = NULL;
|
||||||
msghdr.msg_namelen = d->sock_len;
|
msghdr.msg_namelen = 0;
|
||||||
msghdr.msg_iov = iov;
|
msghdr.msg_iov = iov;
|
||||||
msghdr.msg_iovlen = sizeof(iov)/sizeof(*iov);
|
msghdr.msg_iovlen = sizeof(iov)/sizeof(*iov);
|
||||||
#if 0
|
#if 0
|
||||||
@@ -370,7 +370,7 @@ do_request(void *buf, size_t len, struct descr *d)
|
|||||||
|
|
||||||
if (sendmsg (d->s, &msghdr, 0) < 0) {
|
if (sendmsg (d->s, &msghdr, 0) < 0) {
|
||||||
kcm_log (0, "sendmsg(%d): %d %s", (int)d->peercred.pid,
|
kcm_log (0, "sendmsg(%d): %d %s", (int)d->peercred.pid,
|
||||||
strerror(errno));
|
errno, strerror(errno));
|
||||||
krb5_data_free(&reply);
|
krb5_data_free(&reply);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user