]> git.sur5r.net Git - openldap/commitdiff
ITS#2558 fix
authorKurt Zeilenga <kurt@openldap.org>
Sat, 31 May 2003 03:37:18 +0000 (03:37 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 31 May 2003 03:37:18 +0000 (03:37 +0000)
libraries/libldap/os-local.c

index 3e8a7f2d4a439d4e456a1ef34d369c7663a7cbb3..66386abe12afd96d1988310e9ac4e9a22375f7ea 100644 (file)
@@ -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;