This happens if hte message is delayed, and the session meanwhile
is closed. We need similar checks any time we take a Session
from the message->get_connection()....
MAuthReply *reply;
Session *s = (Session *)m->get_connection()->get_priv();
+ if (!s) {
+ dout(10) << "no session, dropping" << dendl;
+ delete m;
+ return true;
+ }
bufferlist response_bl;
bufferlist::iterator indata = m->auth_payload.begin();
::decode(global_id, p);
clientid = global_id;
auth->set_global_id(global_id);
- dout(1) << "my global_id is " << global_id << dendl;
+ dout(10) << "my global_id is " << global_id << dendl;
} catch (buffer::error *err) {
delete m;
return;
bool reply = false;
Session *s = (Session *)m->get_connection()->get_priv();
+ if (!s) {
+ dout(10) << " no session, dropping" << dendl;
+ delete m;
+ return;
+ }
s->until = g_clock.now();
s->until += g_conf.mon_subscribe_interval;