ASF Bugzilla – Attachment 21338 Details for
Bug 44116
Multiple JSESSIONID handling with overlapping domains does not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Alternative patch
jk_lb_worker.patch (text/plain), 1.98 KB, created by
Rainer Jung
on 2008-01-02 14:04:11 UTC
(
hide
)
Description:
Alternative patch
Filename:
MIME Type:
Creator:
Rainer Jung
Created:
2008-01-02 14:04:11 UTC
Size:
1.98 KB
patch
obsolete
>Index: jk_lb_worker.c >=================================================================== >--- jk_lb_worker.c (revision 607768) >+++ jk_lb_worker.c (working copy) >@@ -358,25 +358,27 @@ > * Session cookie was found, get it's value > */ > char *id_end; >+ size_t sz; > ++id_start; >- id_start = jk_pool_strdup(s->pool, id_start); >- if ((id_end = strchr(id_start, ';')) != NULL) { >- *id_end = '\0'; >+ if ((id_end = strpbrk(id_start, ";,")) != NULL) >+ sz = id_end - id_start; >+ else { >+ sz = strlen(id_start); >+ id_end = id_start + sz; > } >- if ((id_end = strchr(id_start, ',')) != NULL) { >- *id_end = '\0'; >- } > if (result == NULL) { >- result = id_start; >+ result = jk_pool_alloc(s->pool, sz + 1); >+ memcpy(result, id_start, sz); >+ result[sz] = '\0'; > } > else { > size_t osz = strlen(result) + 1; >- size_t sz = osz + strlen(id_start) + 1; > result = >- jk_pool_realloc(s->pool, sz, result, osz); >+ jk_pool_realloc(s->pool, osz + sz + 1, result, osz); > strcat(result, ";"); >- strcat(result, id_start); >+ strncat(result, id_start, sz); > } >+ id_start = id_end; > } > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 44116
:
21300
| 21338