Signed-off-by: Ricardo Dias <rdias@suse.com>
ldout(cct, 10) << __func__ << " sending auth request method=" << auth_method
<< " len=" << authorizer->bl.length() << dendl;
+ // we need to copy authorizer->bl because we might need it again in a
+ // reconnect
+ bufferlist auth_blob;
+ auth_blob.append(authorizer->bl);
AuthRequestFrame authFrame(auth_method, authorizer->bl.length(),
- authorizer->bl);
+ auth_blob);
bufferlist &bl = authFrame.get_buffer();
return WRITE(bl, "auth request", read_frame);
}