projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77896be
)
fix last commit
author
Alan T. DeKok
<aland@freeradius.org>
Thu, 14 Jan 2016 22:08:08 +0000
(17:08 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Thu, 14 Jan 2016 22:08:08 +0000
(17:08 -0500)
src/lib/radius.c
patch
|
blob
|
history
diff --git
a/src/lib/radius.c
b/src/lib/radius.c
index
964eb00
..
f0b82ed
100644
(file)
--- a/
src/lib/radius.c
+++ b/
src/lib/radius.c
@@
-1845,11
+1845,12
@@
int rad_encode(RADIUS_PACKET *packet, RADIUS_PACKET const *original,
* skip them (except for CUI, thanks WiMAX!) on
* all other attributes.
*/
- if ((reply->vp_length == 0) &&
- (reply->da->vendor == 0) &&
- (reply->da->attr != PW_CHARGEABLE_USER_IDENTITY)) {
- reply = reply->next;
- continue;
+ if (reply->vp_length == 0) {
+ if ((reply->da->vendor != 0) ||
+ (reply->da->attr != PW_CHARGEABLE_USER_IDENTITY)) {
+ reply = reply->next;
+ continue;
+ }
}
/*