projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
aab4018
)
New function to validate if a comparison was registered
author
aland
<aland>
Mon, 12 May 2008 14:41:32 +0000
(14:41 +0000)
committer
aland
<aland>
Mon, 12 May 2008 14:41:32 +0000
(14:41 +0000)
src/main/valuepair.c
patch
|
blob
|
history
diff --git
a/src/main/valuepair.c
b/src/main/valuepair.c
index
bbcac46
..
73ab208
100644
(file)
--- a/
src/main/valuepair.c
+++ b/
src/main/valuepair.c
@@
-263,6
+263,23
@@
int radius_callback_compare(REQUEST *req, VALUE_PAIR *request,
/*
+ * Find a comparison function for two attributes.
+ */
+int radius_find_compare(int attribute)
+{
+ struct cmp *c;
+
+ for (c = cmp; c; c = c->next) {
+ if (c->attribute == attribute) {
+ return TRUE;
+ }
+ }
+
+ return FALSE;
+}
+
+
+/*
* See what attribute we want to compare with.
*/
static int otherattr(int attr)