summaryrefslogtreecommitdiffhomepage
path: root/src/conns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conns.c')
-rw-r--r--src/conns.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/conns.c b/src/conns.c
index feac522..ca8f24e 100644
--- a/src/conns.c
+++ b/src/conns.c
@@ -58,6 +58,21 @@ int conn_init_contents (struct conn_s *connptr, const char *ipaddr,
connptr->cbuffer = cbuffer;
connptr->sbuffer = sbuffer;
+ connptr->request_line = NULL;
+
+ /* These store any error strings */
+ connptr->error_variables = NULL;
+ connptr->error_string = NULL;
+ connptr->error_number = -1;
+
+ connptr->connect_method = CM_FALSE;
+ connptr->show_stats = FALSE;
+
+ connptr->protocol.major = connptr->protocol.minor = 0;
+
+ /* There is _no_ content length initially */
+ connptr->content_length.server = connptr->content_length.client = -1;
+
connptr->server_ip_addr = (sock_ipaddr ?
safestrdup (sock_ipaddr) : NULL);
connptr->server_ip_addr_alt = (sock_ipaddr_alt ?