projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4a27ab
)
Larger string buffer for forward address PAZ-987
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 17 Dec 2014 10:40:36 +0000
(11:40 +0100)
committer
Adam 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
patch
|
blob
|
history
diff --git
a/src/http.h
b/src/http.h
index
4bae571
..
1067e85
100644
(file)
--- a/
src/http.h
+++ b/
src/http.h
@@
-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;