From 9940efdb116dea28642ade1c9bcc8f0ea7ba5338 Mon Sep 17 00:00:00 2001 From: Svyatoslav Date: Tue, 25 Apr 2017 15:52:53 +0300 Subject: [PATCH] src/msg/async/AsyncConnect.cc: PVS-Studio: CWE-467 Use of sizeof() on a Pointer Type Signed-off-by: Svyatoslav --- src/msg/async/AsyncConnection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index 4741294ace9..0624427f35e 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -417,7 +417,7 @@ void AsyncConnection::process() case STATE_OPEN_TAG_ACK: { ceph_le64 *seq; - r = read_until(sizeof(seq), state_buffer); + r = read_until(sizeof(*seq), state_buffer); if (r < 0) { ldout(async_msgr->cct, 1) << __func__ << " read ack seq failed" << dendl; goto fail; -- 2.47.3