mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-15 20:39:44 -04:00
[BUILD] appsession did not build anymore under gcc-2.95
(cherry picked from commit 1fac75385a)
This commit is contained in:
parent
1e01b78aff
commit
1df8a6a684
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue