return nullptr;
}
- ldout(cct, 10) << __func__
- << " sending auth request len=" << authorizer->bl.length()
- << dendl;
+ ldout(cct, 10) << __func__ << " sending auth request method=" << auth_method
+ << " len=" << authorizer->bl.length() << dendl;
AuthRequestFrame authFrame(auth_method, authorizer->bl.length(),
authorizer->bl);
delete authorizer;
authorizer = messenger->ms_deliver_get_authorizer(connection->peer_type,
true); // try harder
- ldout(cct, 10) << __func__
- << " sending auth request len=" << authorizer->bl.length()
- << dendl;
+
+ if (!authorizer) {
+ ldout(cct, 1) << __func__
+ << " could not get an authorizer, closing connection"
+ << dendl;
+ return _fault();
+ }
+
+ ldout(cct, 10) << __func__ << " sending auth request method=" << auth_method
+ << " len=" << authorizer->bl.length() << dendl;
AuthRequestFrame authFrame(auth_method, authorizer->bl.length(),
authorizer->bl);