From: Svyatoslav Date: Tue, 25 Apr 2017 12:52:53 +0000 (+0300) Subject: src/msg/async/AsyncConnect.cc: PVS-Studio: CWE-467 Use of sizeof() on a Pointer Type X-Git-Tag: v12.0.3~209^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9940efdb116dea28642ade1c9bcc8f0ea7ba5338;p=ceph.git src/msg/async/AsyncConnect.cc: PVS-Studio: CWE-467 Use of sizeof() on a Pointer Type Signed-off-by: Svyatoslav --- 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;