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