Index: jk_lb_worker.c
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c,v
retrieving revision 1.22
diff -r1.22 jk_lb_worker.c
113c113,114
< static char *get_cookie(jk_ws_service_t *s,
---
> static char *get_cookie(lb_worker_t *p,
>                         jk_ws_service_t *s,
116a118
>     unsigned j;
135a138
>                         char *id_dup_start;
138,139c141,142
<                         id_start = jk_pool_strdup(s->pool, id_start);
<                         if((id_end = strchr(id_start, ';')) != NULL) {
---
>                         id_dup_start = jk_pool_strdup(s->pool, id_start);
>                         if((id_end = strchr(id_dup_start, ';')) != NULL) {
142c145
<                         if((id_end = strchr(id_start, ',')) != NULL) {
---
>                         if((id_end = strchr(id_dup_start, ',')) != NULL) {
145c148,151
<                         return id_start;
---
>                         for(j = 0 ; j < p->num_of_workers ; j++) {
>                             if (strstr(id_dup_start, p->lb_workers[j].name) != NULL)
>                                 return id_dup_start;
>                         }
159c165,166
< static char *get_sessionid(jk_ws_service_t *s)
---
> static char *get_sessionid(lb_worker_t *p,
>                            jk_ws_service_t *s)
164c171
<         val = get_cookie(s, JK_SESSION_IDENTIFIER);
---
>         val = get_cookie(p, s, JK_SESSION_IDENTIFIER);
169c176,177
< static char *get_session_route(jk_ws_service_t *s)
---
> static char *get_session_route(lb_worker_t *p,
>                                jk_ws_service_t *s)
171c179
<     char *sessionid = get_sessionid(s);
---
>     char *sessionid = get_sessionid(p, s);
229c237
<         session_route = get_session_route(s);
---
>         session_route = get_session_route(p, s);
