Skip to content

Commit

Permalink
8253829: Wrong length compared in SSPI bridge
Browse files Browse the repository at this point in the history
Backport-of: e5ba020
  • Loading branch information
Sergey Nazarkin authored and Andrew Brygin committed Jun 23, 2022
1 parent 1c1f7a1 commit e16aaca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java.security.jgss/windows/native/libsspi_bridge/sspi.cpp
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -462,7 +462,7 @@ gss_compare_name(OM_uint32 *minor_status,
}

if (l1 < l2 && l1 != r2
|| l2 < l1 && l2 != l1) {
|| l2 < l1 && l2 != r1) {
return GSS_S_COMPLETE; // different
}

Expand Down

1 comment on commit e16aaca

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.