summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/pppoe/pppoe.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2017-12-20 13:11:15 +0300
committerDmitry Kozlov <xeb@mail.ru>2017-12-20 13:11:15 +0300
commit017c749648a91571b23824a689f2e3fdfe8c9d7e (patch)
treed109aeefc34059f41ec26b6a27d2563e4636b0c3 /accel-pppd/ctrl/pppoe/pppoe.c
parent019f2c557d066070217a5cc873fd078bf3b6400d (diff)
downloadaccel-ppp-017c749648a91571b23824a689f2e3fdfe8c9d7e.tar.gz
accel-ppp-017c749648a91571b23824a689f2e3fdfe8c9d7e.zip
shaper: define UINT16_MAX if not set
Diffstat (limited to 'accel-pppd/ctrl/pppoe/pppoe.c')
-rw-r--r--accel-pppd/ctrl/pppoe/pppoe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/pppoe/pppoe.c b/accel-pppd/ctrl/pppoe/pppoe.c
index 4f99354..11a6ea1 100644
--- a/accel-pppd/ctrl/pppoe/pppoe.c
+++ b/accel-pppd/ctrl/pppoe/pppoe.c
@@ -989,7 +989,7 @@ static void pppoe_recv_PADI(struct pppoe_serv_t *serv, uint8_t *pack, int size)
if (conf_service_name[0]) {
int svc_index = 0;
do {
- if (ntohs(tag->tag_len) == strlen(conf_service_name[svc_index]) &&
+ if (ntohs(tag->tag_len) == strlen(conf_service_name[svc_index]) &&
memcmp(tag->tag_data, conf_service_name[svc_index], ntohs(tag->tag_len)) == 0) {
service_match = 1;
break;
@@ -1126,7 +1126,7 @@ static void pppoe_recv_PADR(struct pppoe_serv_t *serv, uint8_t *pack, int size)
else if (conf_service_name[0]) {
int svc_index = 0;
do {
- if (ntohs(tag->tag_len) == strlen(conf_service_name[svc_index]) &&
+ if (ntohs(tag->tag_len) == strlen(conf_service_name[svc_index]) &&
memcmp(tag->tag_data, conf_service_name[svc_index], ntohs(tag->tag_len)) == 0) {
service_match = 1;
break;