Larger string buffer for forward address PAZ-987
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 17 Dec 2014 10:40:36 +0000 (11:40 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 17 Dec 2014 10:40:36 +0000 (11:40 +0100)
Fixes buffer overflow that could occur if forward address is IPV6.

src/http.h

index 4bae571..1067e85 100644 (file)
@@ -50,7 +50,7 @@ struct http_channel
     struct http_request *request;
     struct http_response *response;
     struct http_channel *next; // for freelist
-    char addr[20]; // forwarded address
+    char addr[256]; // forwarded address
     http_channel_observer_t observers;
     struct conf_server *server;
     http_server_t http_server;