Index: ipc/ipc_channel_posix.cc |
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc |
index 1ff3543a7655ff1eb65d0244e5d5ac4a05eb7c33..08529932250ad04d0c0a3c9be42049fed7728d02 100644 |
--- a/ipc/ipc_channel_posix.cc |
+++ b/ipc/ipc_channel_posix.cc |
@@ -1005,7 +1005,7 @@ |
case Channel::HELLO_MESSAGE_TYPE: |
int pid; |
- if (!iter.ReadInt(&pid)) |
+ if (!msg.ReadInt(&iter, &pid)) |
NOTREACHED(); |
#if defined(IPC_USES_READWRITE) |
@@ -1028,9 +1028,9 @@ |
#if defined(OS_MACOSX) |
case Channel::CLOSE_FD_MESSAGE_TYPE: |
int fd, hops; |
- if (!iter.ReadInt(&hops)) |
+ if (!msg.ReadInt(&iter, &hops)) |
NOTREACHED(); |
- if (!iter.ReadInt(&fd)) |
+ if (!msg.ReadInt(&iter, &fd)) |
NOTREACHED(); |
if (hops == 0) { |
if (fds_to_close_.erase(fd) > 0) { |