]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
A IPv6 address is made of 8 short int
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Fri, 24 Jun 2011 07:53:10 +0000 (07:53 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Fri, 24 Jun 2011 07:53:10 +0000 (07:53 +0000)
The allocated buffer was too small.

url.c

diff --git a/url.c b/url.c
index 6de0abf3d6df2c5db44041e271440e147b1c686a..c41c117402f19782f367d06718a35ec2b671a2b0 100644 (file)
--- a/url.c
+++ b/url.c
@@ -71,7 +71,7 @@ struct hostalias_ipv6
        //! The next host name in the list or NULL for the last item.
        struct hostalias_ipv6 *Next;
        //! The IP address.
-       unsigned short Ip[6];
+       unsigned short Ip[8];
        //! The number of bits in the prefix.
        int NBits;
        //! The replacement name.