aboutsummaryrefslogblamecommitdiff
path: root/security/openconnect/files/patch-esp
blob: 8d96c8d571dc395d8fb0a6f66003f0103edd823e (plain) (tree)


























                                                                                        
From 25e2d3a8e607742b28cddb5443a3b7ad86254b4c Mon Sep 17 00:00:00 2001
From: David Woodhouse <David.Woodhouse@intel.com>
Date: Fri, 20 Mar 2015 12:10:13 +0000
Subject: [PATCH] Fix build without ESP

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
---
 oncp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/oncp.c b/oncp.c
index c12d86f..c9c7dc6 100644
--- oncp.c
+++ oncp.c
@@ -1049,7 +1049,9 @@ int oncp_mainloop(struct openconnect_info *vpninfo, int *timeout)
 			/* XXX: Do we have to do this or can we leave it open?
 			 * Perhaps we could even reconnect asynchronously while
 			 * the ESP is still running? */
+#if defined(ESP_GNUTLS) || defined(ESP_OPENSSL)
 			esp_shutdown(vpninfo);
+#endif
 			ret = ssl_reconnect(vpninfo);
 			if (ret) {
 				vpn_progress(vpninfo, PRG_ERR, _("Reconnect failed\n"));
-- 
1.9.3