diff options
author | Willy Tarreau <w@1wt.eu> | 2010-01-09 19:23:06 +0100 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2010-01-28 23:16:36 +0100 |
commit | 1df8a6a684a60aa42f0b01ad7cdcc414a7dfa6d3 (patch) | |
tree | 914dc51f7e443eff8266068b97183370fc956ed2 /src | |
parent | 1e01b78aff2a9c7e2c2f63ef74b471d0b5d06fe3 (diff) | |
download | haproxy-1df8a6a684a60aa42f0b01ad7cdcc414a7dfa6d3.tar.gz |
[BUILD] appsession did not build anymore under gcc-2.95
(cherry picked from commit 1fac75385abdfe03d7d3c4c5b04eb95a0db1bc74)
Diffstat (limited to 'src')
-rw-r--r-- | src/proto_http.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/proto_http.c b/src/proto_http.c index 32ac33e43..421b6c069 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -4128,6 +4128,7 @@ void manage_server_side_cookies(struct session *t, struct buffer *rtr) /* only do insert, if lookup fails */ asession = appsession_hash_lookup(&(t->be->htbl_proxy), t->sessid); if (asession == NULL) { + size_t server_id_len; if ((asession = pool_alloc2(pool2_appsess)) == NULL) { Alert("Not enough Memory process_srv():asession:calloc().\n"); send_log(t->be, LOG_ALERT, "Not enough Memory process_srv():asession:calloc().\n"); @@ -4141,7 +4142,7 @@ void manage_server_side_cookies(struct session *t, struct buffer *rtr) memcpy(asession->sessid, t->sessid, t->be->appsession_len); asession->sessid[t->be->appsession_len] = 0; - size_t server_id_len = strlen(t->srv->id) + 1; + server_id_len = strlen(t->srv->id) + 1; if ((asession->serverid = pool_alloc2(apools.serverid)) == NULL) { Alert("Not enough Memory process_srv():asession->sessid:malloc().\n"); send_log(t->be, LOG_ALERT, "Not enough Memory process_srv():asession->sessid:malloc().\n"); |