summaryrefslogtreecommitdiff
path: root/libexec/spamd-setup
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2017-07-07 00:10:16 +0000
committerDamien Miller <djm@cvs.openbsd.org>2017-07-07 00:10:16 +0000
commitd573e5ee176bcd7af7ff59d9000b123ec362a57c (patch)
tree6a45baddd481c974731456d1af567c7f6a65ce1a /libexec/spamd-setup
parent1771f25d6dc7718c6b059dcfbb26f55383ba3e9c (diff)
allow fetching lists from https:// URLs too
Diffstat (limited to 'libexec/spamd-setup')
-rw-r--r--libexec/spamd-setup/spamd-setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/spamd-setup/spamd-setup.c b/libexec/spamd-setup/spamd-setup.c
index edba1b3abc7..eb2cb7dffe9 100644
--- a/libexec/spamd-setup/spamd-setup.c
+++ b/libexec/spamd-setup/spamd-setup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spamd-setup.c,v 1.49 2017/07/07 00:09:14 djm Exp $ */
+/* $OpenBSD: spamd-setup.c,v 1.50 2017/07/07 00:10:15 djm Exp $ */
/*
* Copyright (c) 2003 Bob Beck. All rights reserved.
@@ -315,7 +315,7 @@ open_file(char *method, char *file)
if ((method == NULL) || (strcmp(method, "file") == 0))
return (open(file, O_RDONLY));
- if ((strcmp(method, "http") == 0) ||
+ if (strcmp(method, "http") == 0 || strcmp(method, "https") == 0 ||
strcmp(method, "ftp") == 0) {
if (asprintf(&url, "%s://%s", method, file) == -1)
return (-1);