From: Alan T. DeKok Date: Wed, 13 Jun 2012 19:18:02 +0000 (+0200) Subject: Fix bug X-Git-Tag: release_2_2_0~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a4c699a5a1688126fe2680eb7c719976b54d01e;p=thirdparty%2Ffreeradius-server.git Fix bug --- diff --git a/src/modules/rlm_caching/rlm_caching.c b/src/modules/rlm_caching/rlm_caching.c index 2f446c40a3e..02098153865 100644 --- a/src/modules/rlm_caching/rlm_caching.c +++ b/src/modules/rlm_caching/rlm_caching.c @@ -435,7 +435,7 @@ static int caching_authorize(void *instance, REQUEST *request) pairadd(&request->config_items, item); } else{ - strcmp(item->vp_strvalue, cache_data.auth_type); + strcpy(item->vp_strvalue, cache_data.auth_type); item->length = strlen(cache_data.auth_type); } } @@ -447,7 +447,7 @@ static int caching_authorize(void *instance, REQUEST *request) pairadd(&request->config_items, item); } else{ - strcmp(item->vp_strvalue, data->post_auth); + strcpy(item->vp_strvalue, data->post_auth); item->length = strlen(data->post_auth); } }