]> jfr.im git - irc/evilnet/x3.git/commitdiff
Fixed bug in P10 B64 IPv6 parsing where the entire IPv6 IP after the :: was ommited.
authorjobe1986 <redacted>
Mon, 15 Mar 2010 17:38:49 +0000 (17:38 +0000)
committerjobe1986 <redacted>
Mon, 15 Mar 2010 17:38:49 +0000 (17:38 +0000)
ChangeLog
src/proto-p10.c

index e68cf9a2a3dbf467ddf99775671fbb1d8f3a39bc..18ff2c6939d02771c0927bfcb34525500ff7e349 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 /***********************************************************************
 X3 ChangeLog
 
+2010-03-03  Matthew Beeching  <jobe@mdbnet.co.uk>
+
+       * src/proto-p10.c: Fixed bug in P10 B64 IPv6 parsing where the
+       entire IPv6 IP after the :: was ommited.
+
 2010-02-27  Matthew Beeching  <jobe@mdbnet.co.uk>
 
        * src/proto-p10.c: Added message handlers for ZLINE and REMOVE
index 4108790dc4db85e4cb6051100ae469e2828b75a2..421bfe6a0849a146f64d406ffd57e9e2df9c257f 100644 (file)
@@ -520,7 +520,7 @@ irc_p10_pton(irc_in_addr_t *ip, const char *input)
         do {
             if (*input == '_') {
                 unsigned int left;
-                for (left = (25 - strlen(input)) / 3; left; left--)
+                for (left = (25 - strlen(input)) / 3 - pos; left; left--)
                     ip->in6[pos++] = 0;
                 input++;
             } else {