summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2010-09-23 23:30:01 +0400
committerDmitry Kozlov <xeb@mail.ru>2010-09-23 23:30:01 +0400
commit863e1de3aa67a03bdf2b9720b32eafe6670b29a3 (patch)
treed442a3fbe9e92ac5118d8ec8c3854db6f8851ee4
parent8681ad6d60565ca2e399156bf721f67f8a8bdc92 (diff)
downloadaccel-ppp-863e1de3aa67a03bdf2b9720b32eafe6670b29a3.tar.gz
accel-ppp-863e1de3aa67a03bdf2b9720b32eafe6670b29a3.zip
radius: fixed incorrect vendor attributes receiving
-rw-r--r--accel-pptpd/radius/packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pptpd/radius/packet.c b/accel-pptpd/radius/packet.c
index 6d22e7a4..28dbca89 100644
--- a/accel-pptpd/radius/packet.c
+++ b/accel-pptpd/radius/packet.c
@@ -164,9 +164,9 @@ struct rad_packet_t *rad_packet_recv(int fd, struct sockaddr_in *addr)
ptr += 4;
id = *ptr; ptr++;
len = *ptr - 2; ptr++;
- n -= 2 + len;
+ n -= 2 + 4;
} else
- log_ppp_warn("radius:packet: vendor %s not found\n", id);
+ log_ppp_warn("radius:packet: vendor %i not found\n", id);
} else
vendor = NULL;
da = rad_dict_find_attr_id(vendor, id);