Blame SOURCES/nfs-utils-1.3.0-rpcgssd-findkeytab.patch
|
|
851484 |
diff -up nfs-utils-1.3.0/utils/gssd/krb5_util.c.orig nfs-utils-1.3.0/utils/gssd/krb5_util.c
|
|
|
851484 |
--- nfs-utils-1.3.0/utils/gssd/krb5_util.c.orig 2016-05-16 08:46:45.554915290 -0400
|
|
|
851484 |
+++ nfs-utils-1.3.0/utils/gssd/krb5_util.c 2016-05-16 09:13:09.479879099 -0400
|
|
|
851484 |
@@ -768,7 +768,7 @@ find_keytab_entry(krb5_context context,
|
|
|
851484 |
char **realmnames = NULL;
|
|
|
851484 |
char myhostname[NI_MAXHOST], targethostname[NI_MAXHOST];
|
|
|
851484 |
char myhostad[NI_MAXHOST+1];
|
|
|
851484 |
- int i, j, retval;
|
|
|
851484 |
+ int i, j, k, retval;
|
|
|
851484 |
char *default_realm = NULL;
|
|
|
851484 |
char *realm;
|
|
|
851484 |
char *k5err = NULL;
|
|
|
851484 |
@@ -913,8 +913,8 @@ find_keytab_entry(krb5_context context,
|
|
|
851484 |
* moving on to the svcname
|
|
|
851484 |
*/
|
|
|
851484 |
if (strcmp(svcnames[j],"$") == 0 && !tried_upper) {
|
|
|
851484 |
- for (i = 0; myhostad[i] != '$'; ++i) {
|
|
|
851484 |
- myhostad[i] = toupper(myhostad[i]);
|
|
|
851484 |
+ for (k = 0; myhostad[k] != '$'; ++k) {
|
|
|
851484 |
+ myhostad[k] = toupper(myhostad[k]);
|
|
|
851484 |
}
|
|
|
851484 |
j--;
|
|
|
851484 |
tried_upper = 1;
|