]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix bug
authorAlan T. DeKok <aland@freeradius.org>
Wed, 13 Jun 2012 19:18:02 +0000 (21:18 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 15 Jul 2012 17:09:47 +0000 (13:09 -0400)
src/modules/rlm_caching/rlm_caching.c

index 2f446c40a3ef057addbf9f5e310029b16fd6b816..02098153865de6c67c88dd6e7594a98adfd7ef31 100644 (file)
@@ -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);
                        }
                }