X-Git-Url: http://www.privoxy.org/gitweb/contact.html?a=blobdiff_plain;f=jcc.c;h=ad210ab2cf167baca2029e2e1923d7c7cd823cb4;hb=97dcdede1c96c857ea36b5f5a9873c302d021a7d;hp=8ab7f872e03d02b86d52137f3b4e5390910481ac;hpb=9424a2760917ffde1cdaf6217309b9b01f31d4a9;p=privoxy.git diff --git a/jcc.c b/jcc.c index 8ab7f872..ad210ab2 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.441 2016/02/26 12:29:38 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.442 2016/03/17 10:40:53 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -1678,6 +1678,12 @@ static jb_err receive_client_request(struct client_state *csp) } } +#ifdef FEATURE_CLIENT_TAGS + /* XXX: If the headers were enlisted sooner, passing csp would do. */ + set_client_address(csp, headers); + get_tag_list_for_client(csp->client_tags, csp->client_address); +#endif + /* * Determine the actions for this URL */ @@ -1848,9 +1854,6 @@ static void chat(struct client_state *csp) http = csp->http; -#if FEATURE_CLIENT_TAGS - get_tag_list_for_client(csp->client_tags, csp->ip_addr_str); -#endif if (receive_client_request(csp) != JB_ERR_OK) { return; @@ -2824,6 +2827,7 @@ static void prepare_csp_for_next_request(struct client_state *csp) destroy_list(csp->tags); #ifdef FEATURE_CLIENT_TAGS destroy_list(csp->client_tags); + freez(csp->client_address); #endif free_current_action(csp->action); if (NULL != csp->fwd)