7c69675add
Resolves: #2152695
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From 8c5b63069dfbf36ac662369d9ba3fb4ab0d2efb2 Mon Sep 17 00:00:00 2001
|
|
From: Ray Strode <rstrode@redhat.com>
|
|
Date: Thu, 15 Dec 2022 14:46:01 -0500
|
|
Subject: [PATCH 2/2] kerberos-identity: Fix buglet in update_identity
|
|
|
|
The update_identity function is supposed to transfer the identity
|
|
form one object to another.
|
|
|
|
In practice, this is currently always a noop because only objects
|
|
with the same identities get copied to each other.
|
|
|
|
Nevertheless, there is a bug in the function. It grabs the identity
|
|
from the target object instead of from the source object.
|
|
|
|
This commit fixes that.
|
|
---
|
|
src/goaidentity/goakerberosidentity.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/goaidentity/goakerberosidentity.c b/src/goaidentity/goakerberosidentity.c
|
|
index a20c0438..bc607966 100644
|
|
--- a/src/goaidentity/goakerberosidentity.c
|
|
+++ b/src/goaidentity/goakerberosidentity.c
|
|
@@ -1507,7 +1507,7 @@ update_identifier (GoaKerberosIdentity *self, GoaKerberosIdentity *new_identity)
|
|
{
|
|
char *new_identifier;
|
|
|
|
- new_identifier = get_identifier (self, NULL);
|
|
+ new_identifier = get_identifier (new_identity, NULL);
|
|
if (g_strcmp0 (self->identifier, new_identifier) != 0 && new_identifier != NULL)
|
|
{
|
|
g_free (self->identifier);
|
|
--
|
|
GitLab
|
|
|