From 8123ffc3f2028902de34f9f5482c07f2a4654bc9 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 24 Nov 2021 09:36:29 -0500 Subject: [PATCH] _gssapi_unwrap_iov_arcfour remove duplicate code block ad3acc2aef955c3c1d28607629cc9e6140ad3efd ("lib/gssapi/krb5: implement gss_[un]wrap_iov[_length] with arcfour-hmac-md5") introduced a duplicate block of code. This change removes the unnecessary code duplication. Change-Id: I557c590aea51b73dc25d6ce4be4ea84b9dfadd9f --- lib/gssapi/krb5/arcfour.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/gssapi/krb5/arcfour.c b/lib/gssapi/krb5/arcfour.c index 7bd01a137..10df05dff 100644 --- a/lib/gssapi/krb5/arcfour.c +++ b/lib/gssapi/krb5/arcfour.c @@ -1283,16 +1283,6 @@ _gssapi_unwrap_iov_arcfour(OM_uint32 *minor_status, return GSS_S_BAD_MIC; } - if (ctx->more_flags & LOCAL) { - cmp = memcmp(&snd_seq[4], "\xff\xff\xff\xff", 4); - } else { - cmp = memcmp(&snd_seq[4], "\x00\x00\x00\x00", 4); - } - if (cmp != 0) { - *minor_status = 0; - return GSS_S_BAD_MIC; - } - /* keyblock */ Klocal.keytype = key->keytype; Klocal.keyvalue.data = Klocaldata;