From 5c6573fc315bd6d54f966b0d8f2a1279b8178cf9 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 31 May 2003 03:37:18 +0000 Subject: [PATCH] ITS#2558 fix --- libraries/libldap/os-local.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/libldap/os-local.c b/libraries/libldap/os-local.c index 3e8a7f2d4a..66386abe12 100644 --- a/libraries/libldap/os-local.c +++ b/libraries/libldap/os-local.c @@ -182,8 +182,10 @@ sendcred: int fds[2]; if (pipe(fds) == 0) { /* Abandon, noop, has no reply */ - struct iovec iov = {(char *)abandonPDU, sizeof(abandonPDU)}; + struct iovec iov; struct msghdr msg = {0}; + iov.iov_base = (char *) abandonPDU; + iov.iov_len = sizeof abandonPDU; msg.msg_iov = &iov; msg.msg_iovlen = 1; msg.msg_accrights = (char *)fds; -- 2.39.5