Blame SOURCES/mailx-12.5-nss-hostname-matching.patch

9770e7
From 5b7f57844682339340333034be1b8f99acafde28 Mon Sep 17 00:00:00 2001
9770e7
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
9770e7
Date: Thu, 7 Jan 2016 12:26:40 +0100
9770e7
Subject: [PATCH] Fix NSS hostname matching
9770e7
9770e7
---
9770e7
 nss.c | 2 +-
9770e7
 1 file changed, 1 insertion(+), 1 deletion(-)
9770e7
9770e7
diff --git a/nss.c b/nss.c
9770e7
index 96b0ea3..2acbd5f 100644
9770e7
--- a/nss.c
9770e7
+++ b/nss.c
9770e7
@@ -189,7 +189,7 @@ nss_check_host(const char *server, struct sock *sp)
9770e7
 					fprintf(stderr,
9770e7
 						"Comparing DNS name: \"%s\"\n",
9770e7
 						dn);
9770e7
-				if (rfc2595_hostname_match(server, dn)
9770e7
+				if ((ok = rfc2595_hostname_match(server, dn))
9770e7
 						== OKAY) {
9770e7
 					ac_free(dn);
9770e7
 					goto out;
9770e7
-- 
9770e7
2.4.3
9770e7