multipath-tools: Remove the limitation of IPC command reply length.
[multipath-tools/.git] / libmpathcmd / mpath_cmd.c
index 1496b68..af618cf 100644 (file)
@@ -142,10 +142,6 @@ int mpath_recv_reply(int fd, char **reply, unsigned int timeout)
        len = mpath_recv_reply_len(fd, timeout);
        if (len <= 0)
                return len;
-       if (len > MAX_REPLY_LEN) {
-               errno = EINVAL;
-               return -1;
-       }
        *reply = malloc(len);
        if (!*reply)
                return -1;