summaryrefslogtreecommitdiff
path: root/www/shellinabox/files/patch-ssl.in
blob: d4ffa216cbc26acb087e9bb1a7601167dbd058f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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;