diff options
-rw-r--r-- | accel-pptpd/radius/packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pptpd/radius/packet.c b/accel-pptpd/radius/packet.c index 6d22e7a..28dbca8 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); |