Blame SOURCES/nfs-utils-1.3.0-rpcgssd-preferred-realm.patch

fc3648
diff -up nfs-utils-1.3.0/utils/gssd/krb5_util.c.orig nfs-utils-1.3.0/utils/gssd/krb5_util.c
fc3648
--- nfs-utils-1.3.0/utils/gssd/krb5_util.c.orig	2017-03-31 16:34:11.775037704 -0400
fc3648
+++ nfs-utils-1.3.0/utils/gssd/krb5_util.c	2017-04-08 15:18:53.619038636 -0400
fc3648
@@ -848,7 +848,7 @@ find_keytab_entry(krb5_context context,
fc3648
 	i = 0;
fc3648
 	realm = realmnames[i];
fc3648
 
fc3648
-	if (strcmp (realm, preferred_realm) != 0) {
fc3648
+	if (preferred_realm && strcmp (realm, preferred_realm) != 0) {
fc3648
 		realm = preferred_realm;
fc3648
 		/* resetting the realmnames index */
fc3648
 		i = -1;