summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rfc1035/rfc1035qa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc1035/rfc1035qa.c b/rfc1035/rfc1035qa.c
index 7335624..46fc204 100644
--- a/rfc1035/rfc1035qa.c
+++ b/rfc1035/rfc1035qa.c
@@ -227,7 +227,7 @@ unsigned k;
strcpy(buf, "::ffff:");
rfc1035_ntoa_ipv4( &ia4ptr[k], buf+sizeof("::ffff:")-1);
if (inet_pton( AF_INET6, buf, (*iaptr)+ *iasize) <= 0)
- memset( (*iaptr)+ *iasize, 0, sizeof(*iaptr));
+ memset( (*iaptr)+ *iasize, 0, sizeof(**iaptr));
++*iasize;
}
if (ia4len)