From: Kurt Zeilenga Date: Sat, 31 May 2003 03:37:18 +0000 (+0000) Subject: ITS#2558 fix X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~963 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5c6573fc315bd6d54f966b0d8f2a1279b8178cf9;p=openldap ITS#2558 fix --- 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;