]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/Session: fix invalid iterator dereference in Sessoin::have_backoff() 22729/head
authorSage Weil <sage@redhat.com>
Sun, 10 Jun 2018 18:37:56 +0000 (13:37 -0500)
committerPrashant D <pdhange@redhat.com>
Wed, 27 Jun 2018 00:08:05 +0000 (20:08 -0400)
commita096ddeb44d4b5c512c8079883b24d0f7dc56f10
tree6dffe1c83c103b1b15066206e335e4e26372b29d
parentb1b07feee00e258969f84ca321c7963df3213881
osd/Session: fix invalid iterator dereference in Sessoin::have_backoff()

If p is i->second.end(), we do want to back up a position, but we
shouldn't dereference p for p->first.

Fixes: http://tracker.ceph.com/issues/24486
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 2d7bfafa879ca1475173a74a84c66fd7f5e1b6bc)
src/osd/Session.h