summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2010-05-25 22:35:18 +0200
committerLinus Nordberg <linus@nordberg.se>2010-05-25 22:35:18 +0200
commit2e9d382f6a8ed0f746471972efe244ec33924064 (patch)
treed3e69ea2bacedc59793f93b538c038db5f01f743
parente6d9c6611590a0e29f86a17d3c8078b407236510 (diff)
* radsecproxy.c (extractattr): Fix bug where 'name' part was lost (in
fact, 'val' was used for name).
-rw-r--r--radsecproxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 1be5bbf..ff9dbfe 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -2345,7 +2345,7 @@ struct tlv *extractattr(char *nameval) {
s2 = strchr(s + 1, ':');
if (s2) { /* Two ':' means we have vendor:name:val. */
vendor = name;
- name = atoi(s2 + 1);
+ name = atoi(s + 1);
s = s2;
}