aboutsummaryrefslogtreecommitdiffstats
path: root/main/cups/CVE-2017-18190.patch
blob: 3ade6955ad1ac2f1c799d053c8705c02a50fab23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From afa80cb2b457bf8d64f775bed307588610476c41 Mon Sep 17 00:00:00 2001
From: Michael R Sweet <michaelrsweet@gmail.com>
Date: Tue, 3 Jan 2017 13:52:47 -0500
Subject: [PATCH] Don't treat "localhost.localdomain" as an allowed replacement
 for localhost, since it isn't.

---
 scheduler/client.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/scheduler/client.c b/scheduler/client.c
index 42010def1..20ccf11a9 100644
--- a/scheduler/client.c
+++ b/scheduler/client.c
@@ -3890,9 +3890,6 @@ valid_host(cupsd_client_t *con)		/* I - Client connection */
 
     return (!_cups_strcasecmp(con->clientname, "localhost") ||
 	    !_cups_strcasecmp(con->clientname, "localhost.") ||
-#ifdef __linux
-	    !_cups_strcasecmp(con->clientname, "localhost.localdomain") ||
-#endif /* __linux */
             !strcmp(con->clientname, "127.0.0.1") ||
 	    !strcmp(con->clientname, "[::1]"));
   }