diff --git a/src/rgw/rgw_torrent.cc b/src/rgw/rgw_torrent.cc index e85ac8f8637..124de704702 100644 --- a/src/rgw/rgw_torrent.cc +++ b/src/rgw/rgw_torrent.cc @@ -160,7 +160,7 @@ int seed::sha1_process() SHA1 h; list::iterator iter = torrent_bl.begin(); - for (; iter != torrent_bl.end(); iter++) + for (; iter != torrent_bl.end(); ++iter) { bufferlist &bl_info = *iter; sha1(&h, bl_info, (*iter).length());