summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4client.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4client.c')
-rw-r--r--fs/nfs/nfs4client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c
index f6cc77c7d802..b4a160a405ce 100644
--- a/fs/nfs/nfs4client.c
+++ b/fs/nfs/nfs4client.c
@@ -964,6 +964,9 @@ static int nfs4_init_server(struct nfs_server *server,
964 server->options = data->options; 964 server->options = data->options;
965 server->auth_info = data->auth_info; 965 server->auth_info = data->auth_info;
966 966
967 /* Use the first specified auth flavor. If this flavor isn't
968 * allowed by the server, use the SECINFO path to try the
969 * other specified flavors */
967 if (data->auth_info.flavor_len >= 1) 970 if (data->auth_info.flavor_len >= 1)
968 data->selected_flavor = data->auth_info.flavors[0]; 971 data->selected_flavor = data->auth_info.flavors[0];
969 else 972 else