projects
/
pgbouncer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d159e8
)
Fix IPv6 address memcpy
author
Marko Kreen
<markokr@gmail.com>
Sat, 8 Dec 2012 11:09:10 +0000
(13:09 +0200)
committer
Marko Kreen
<markokr@gmail.com>
Sat, 8 Dec 2012 11:09:10 +0000
(13:09 +0200)
src/dnslookup.c
patch
|
blob
|
blame
|
history
diff --git
a/src/dnslookup.c
b/src/dnslookup.c
index f236a044c3978db052459cafb96129b87c7d6a8e..0c0efe97bcc691b43369d415d6fb2184e08ccb26 100644
(file)
--- a/
src/dnslookup.c
+++ b/
src/dnslookup.c
@@
-167,7
+167,7
@@
static struct addrinfo *mk_addrinfo(const void *adr, int af)
sa6 = calloc(1, sizeof(*sa6));
if (!sa6)
goto failed;
- memcpy(&sa6->sin6_addr, adr, sizeof(
*sa6
));
+ memcpy(&sa6->sin6_addr, adr, sizeof(
sa6->sin6_addr
));
sa6->sin6_family = af;
ai->ai_addr = (struct sockaddr *)sa6;
ai->ai_addrlen = sizeof(*sa6);