diff options
| author | Daniil Baturin <daniil@baturin.org> | 2021-02-10 22:06:36 +0700 |
|---|---|---|
| committer | Daniil Baturin <daniil@baturin.org> | 2021-02-10 22:06:36 +0700 |
| commit | 3eb5e4a458ec62bcf14d065d47d9827327a51b2a (patch) | |
| tree | d519feff694062f92dc49d1b5547ae27c0e150bc /src/ipaddrcheck.c | |
| parent | a5eb1c40b58f653d902572d9deb21919df103544 (diff) | |
| download | ipaddrcheck-3eb5e4a458ec62bcf14d065d47d9827327a51b2a.tar.gz ipaddrcheck-3eb5e4a458ec62bcf14d065d47d9827327a51b2a.zip | |
Correct the double colon check commands.
How late at night must it have been for me to write "semicolons"?
Diffstat (limited to 'src/ipaddrcheck.c')
| -rw-r--r-- | src/ipaddrcheck.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ipaddrcheck.c b/src/ipaddrcheck.c index 2bfc8c9..92250d8 100644 --- a/src/ipaddrcheck.c +++ b/src/ipaddrcheck.c @@ -258,15 +258,14 @@ int main(int argc, char* argv[]) return(EXIT_FAILURE); } - /* FIXUP: libcidr allows more than one double semicolon, but the RFC does not! */ - if( duplicate_double_semicolons(address_str) ) { + /* FIXUP: libcidr allows more than one double colon, but RFC 4291 does not! */ + if( duplicate_double_colons(address_str) ) { if( verbose ) { printf("More than one \"::\" is not allowed in IPv6 addresses\n"); } return(EXIT_FAILURE); } - /* no else needed, the rest is one big else */ while( (action_count >= 0) && (result == RESULT_SUCCESS) ) { |
