RT#6915 fix applied upstream
This commit is contained in:
parent
9848f42acf
commit
eed21c996f
@ -1,29 +0,0 @@
|
|||||||
Don't trip over referral entries. RT#6915
|
|
||||||
|
|
||||||
Index: krb5/src/clients/klist/klist.c
|
|
||||||
===================================================================
|
|
||||||
--- krb5/src/clients/klist/klist.c
|
|
||||||
+++ krb5/src/clients/klist/klist.c
|
|
||||||
@@ -24,7 +24,7 @@
|
|
||||||
* List out the contents of your credential cache or keytab.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#include "autoconf.h"
|
|
||||||
+#include "k5-int.h"
|
|
||||||
#include <krb5.h>
|
|
||||||
#include <com_err.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
@@ -386,10 +386,9 @@
|
|
||||||
continue;
|
|
||||||
if (status_only) {
|
|
||||||
if (exit_status && creds.server->length == 2 &&
|
|
||||||
- strcmp(creds.server->realm.data, princ->realm.data) == 0 &&
|
|
||||||
- strcmp((char *)creds.server->data[0].data, "krbtgt") == 0 &&
|
|
||||||
- strcmp((char *)creds.server->data[1].data,
|
|
||||||
- princ->realm.data) == 0 &&
|
|
||||||
+ data_eq(creds.server->realm, princ->realm) &&
|
|
||||||
+ data_eq_string(creds.server->data[0], "krbtgt") &&
|
|
||||||
+ data_eq(creds.server->data[1], princ->realm) &&
|
|
||||||
creds.times.endtime > now)
|
|
||||||
exit_status = 0;
|
|
||||||
} else {
|
|
Loading…
Reference in New Issue
Block a user