summaryrefslogtreecommitdiff
path: root/fs/ceph/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph/auth.c')
-rw-r--r--fs/ceph/auth.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ceph/auth.c b/fs/ceph/auth.c
index c4d1eee827a3..32f2e2a021ab 100644
--- a/fs/ceph/auth.c
+++ b/fs/ceph/auth.c
@@ -169,6 +169,11 @@ int ceph_handle_auth_reply(struct ceph_auth_client *ac,
}
if (ac->negotiating) {
+ /* server does not support our protocols? */
+ if (!protocol && result < 0) {
+ ret = result;
+ goto out;
+ }
/* set up (new) protocol handler? */
if (ac->protocol && ac->protocol != protocol) {
ac->ops->destroy(ac);