[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
os-local.c gcc code (ITS#2558)
Full_Name: Jean-Frederic Clere
Version: HEAD
OS: ReliantUnix and BS200
URL: ftp://ftp.openldap.org/incoming/jean-frederic.clere-030530.patch
Submission from: (NULL) (217.115.66.150)
Please apply the patch:
diff -u -r1.28 os-local.c
--- libraries/libldap/os-local.c 25 May 2003 02:49:07 -0000 1.28
+++ libraries/libldap/os-local.c 30 May 2003 13:38:30 -0000
@@ -182,8 +182,10 @@
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;