Changeset 449 for trunk/src/sh_ipvx.c


Ignore:
Timestamp:
May 1, 2014, 10:10:47 AM (11 years ago)
Author:
katerina
Message:

More fixes for ticket #350 (ipv6 this time).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_ipvx.c

    r448 r449  
    8282    else if (c == ':')
    8383      ++k;
    84     else if (c == '.' && k < 3)
     84    else if (c == '.' && k < 2)
    8585      return (1 == 0); /* ::ffff:ipv4 */
    8686  }
     87  if (k < 2 || k > 7)
     88    return (1 == 0);
     89
    8790  return (1 == 1);
    8891}
Note: See TracChangeset for help on using the changeset viewer.