Skip to content

Commit

Permalink
remove redundant check. Found by PVS-Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed May 19, 2017
1 parent faf5543 commit 45ae125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/radius.c
Expand Up @@ -1606,7 +1606,7 @@ int rad_vp2rfc(RADIUS_PACKET const *packet,
/*
* Message-Authenticator is hard-coded.
*/
if (!vp->da->vendor && (vp->da->attr == PW_MESSAGE_AUTHENTICATOR)) {
if (vp->da->attr == PW_MESSAGE_AUTHENTICATOR) {
if (room < 18) return -1;

ptr[0] = PW_MESSAGE_AUTHENTICATOR;
Expand Down

0 comments on commit 45ae125

Please sign in to comment.