Browse files

Only hack Cisco-AVPair attributes, not other Cisco attributes.

	Pointed out by Thomas Jalsovsky <admin@postel.sk>
  • Loading branch information...
1 parent 012c386 commit 1b908aab898d95909ad808ab22e4240d84bd8cff aland committed May 17, 2001
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/modules/rlm_preprocess/rlm_preprocess.c
View
2 src/modules/rlm_preprocess/rlm_preprocess.c
@@ -123,6 +123,8 @@ static void cisco_vsa_hack(VALUE_PAIR *vp)
if (vendorpec != 9) continue; /* not a Cisco VSA, continue */
+ if ((vp->attribute & 0xffff) != 1) continue; /* Cisco-AVPair */
+
/*
* We strip out the duplicity from the value field,
* we use only the value on the right side of = character.

0 comments on commit 1b908aa

Please sign in to comment.