mirror of
https://github.com/ceph/ceph
synced 2025-02-24 03:27:10 +00:00
fix segfault introduced by commit de640d85fa
That commit introduces the line 'cur_con->put()' which has the possibility of being called while cur_con is not initialized.
This commit is contained in:
parent
cd75a9d2be
commit
e93c0fc08b
@ -227,8 +227,10 @@ int MonClient::get_monmap_privately()
|
||||
hunting = true; // reset this to true!
|
||||
cur_mon.clear();
|
||||
|
||||
cur_con->put();
|
||||
cur_con = NULL;
|
||||
if (cur_con) {
|
||||
cur_con->put();
|
||||
cur_con = NULL;
|
||||
}
|
||||
|
||||
if (monmap.epoch)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user