Signed-off-by: Sage Weil <sage@redhat.com>
dout(10) << __func__ << " entity " << entity_name << " method "
<< auth_method << " not among supported "
<< auth_cluster_required.get_supported_set() << dendl;
+ delete auth_handler;
return -EOPNOTSUPP;
}
} else {
dout(10) << __func__ << " entity " << entity_name << " method "
<< auth_method << " not among supported "
<< auth_cluster_required.get_supported_set() << dendl;
+ delete auth_handler;
return -EOPNOTSUPP;
}
}
con->peer_global_id = authmon()->assign_global_id(false);
if (!con->peer_global_id) {
dout(1) << __func__ << " failed to assign global_id" << dendl;
+ delete auth_handler;
return -EBUSY;
}
dout(10) << __func__ << " assigned global_id " << con->peer_global_id