From 510a6e9630d156af46df777968b9be6c52b1938f Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 23 Jan 2019 09:25:10 +0100 Subject: [PATCH] fix check of valid HTTPS socket --- miniupnpd/miniupnpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniupnpd/miniupnpd.c b/miniupnpd/miniupnpd.c index 2013bf8..b56c7d7 100644 --- a/miniupnpd/miniupnpd.c +++ b/miniupnpd/miniupnpd.c @@ -2,7 +2,7 @@ /* vim: tabstop=4 shiftwidth=4 noexpandtab * MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ - * (c) 2006-2018 Thomas Bernard + * (c) 2006-2019 Thomas Bernard * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */ @@ -2068,7 +2068,7 @@ main(int argc, char * * argv) #else /* ENABLE_IPV6 */ shttpsl = OpenAndConfHTTPSocket(&listen_port); #endif /* ENABLE_IPV6 */ - if(shttpl < 0) + if(shttpsl < 0) { syslog(LOG_ERR, "Failed to open socket for HTTPS. EXITING"); return 1;