X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fsubnet_parse.c;h=88513f68a6bc88331ecfd42c358869e908b79c00;hb=ca989c0c8b19901cbd7664a9d2b42aa85c9c176e;hp=c54d343d68c78cb1bf948e228f04bfa7eac3fdb5;hpb=f6e87ab476a0faf8b124ecaaa27f967d825e6457;p=tinc diff --git a/src/subnet_parse.c b/src/subnet_parse.c index c54d343d..88513f68 100644 --- a/src/subnet_parse.c +++ b/src/subnet_parse.c @@ -252,7 +252,7 @@ bool str2net(subnet_t *subnet, const char *subnetstr) { if(sscanf(str, "%hx:%hx:%hx:%hx:%hx:%hx%n", &x[0], &x[1], &x[2], &x[3], &x[4], &x[5], &consumed) >= 6 && !str[consumed]) { /* Normally we should check that each part has two digits to prevent ambiguities. - However, in old tinc versions net2str() will agressively return MAC addresses with one-digit parts, + However, in old tinc versions net2str() will aggressively return MAC addresses with one-digit parts, so we have to accept them otherwise we would be unable to parse ADD_SUBNET messages. */ if(prefixlength >= 0) {