summaryrefslogtreecommitdiff
path: root/www/shellinabox/files/patch-ssl.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/shellinabox/files/patch-ssl.in')
-rw-r--r--www/shellinabox/files/patch-ssl.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/www/shellinabox/files/patch-ssl.in b/www/shellinabox/files/patch-ssl.in
new file mode 100644
index 000000000000..d4ffa216cbc2
--- /dev/null
+++ b/www/shellinabox/files/patch-ssl.in
@@ -0,0 +1,12 @@
+--- libhttp/ssl.c.orig 2010-07-01 12:15:40.000000000 +0200
++++ libhttp/ssl.c 2010-07-01 12:16:56.000000000 +0200
+@@ -626,6 +626,9 @@
+ return -1;
+ }
+ struct hostent *he = gethostbyname(name);
++ if (!he) {
++ return -1;
++ }
+ *ret = *he;
+ if (result) {
+ *result = ret;