aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/auth_gss/gss_krb5_mech.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/auth_gss/gss_krb5_mech.c')
-rw-r--r--net/sunrpc/auth_gss/gss_krb5_mech.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sunrpc/auth_gss/gss_krb5_mech.c b/net/sunrpc/auth_gss/gss_krb5_mech.c
index 17587163fca..bf5435db878 100644
--- a/net/sunrpc/auth_gss/gss_krb5_mech.c
+++ b/net/sunrpc/auth_gss/gss_krb5_mech.c
@@ -148,9 +148,11 @@ gss_import_sec_context_kerberos(const void *p,
148 goto out_err_free_ctx; 148 goto out_err_free_ctx;
149 if (tmp != SGN_ALG_DES_MAC_MD5) 149 if (tmp != SGN_ALG_DES_MAC_MD5)
150 goto out_err_free_ctx; 150 goto out_err_free_ctx;
151 p = simple_get_bytes(p, end, &ctx->sealalg, sizeof(ctx->sealalg)); 151 p = simple_get_bytes(p, end, &tmp, sizeof(tmp));
152 if (IS_ERR(p)) 152 if (IS_ERR(p))
153 goto out_err_free_ctx; 153 goto out_err_free_ctx;
154 if (tmp != SEAL_ALG_DES)
155 goto out_err_free_ctx;
154 p = simple_get_bytes(p, end, &ctx->endtime, sizeof(ctx->endtime)); 156 p = simple_get_bytes(p, end, &ctx->endtime, sizeof(ctx->endtime));
155 if (IS_ERR(p)) 157 if (IS_ERR(p))
156 goto out_err_free_ctx; 158 goto out_err_free_ctx;