Skip to content

Commit

Permalink
Fix duplicate condition in if/elseif. found by cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 22, 2014
1 parent 5552a65 commit 294c782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/client.c
Expand Up @@ -1257,7 +1257,7 @@ RADCLIENT *client_from_request(RADCLIENT_LIST *clients, REQUEST *request)
break;

case PW_TYPE_IPV6ADDR:
if (da->attr == PW_FREERADIUS_CLIENT_SRC_IPV6_ADDRESS) {
if (da->attr == PW_FREERADIUS_CLIENT_IPV6_ADDRESS) {
c->ipaddr.af = AF_INET6;
c->ipaddr.ipaddr.ip6addr = vp->vp_ipv6addr;
c->prefix = 128;
Expand Down

0 comments on commit 294c782

Please sign in to comment.