summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorray <>2006-03-22 13:29:26 +0000
committerray <>2006-03-22 13:29:26 +0000
commit9d9130d0f7c4bfde0daf54dc210332b3d3b613fe (patch)
treeaf469b750b4a7d6181d9c020330ee21d6395183b /src
parentf3df708c24835a7c191ee4311b98201be73737be (diff)
downloadopenbsd-9d9130d0f7c4bfde0daf54dc210332b3d3b613fe.tar.gz
openbsd-9d9130d0f7c4bfde0daf54dc210332b3d3b613fe.tar.bz2
openbsd-9d9130d0f7c4bfde0daf54dc210332b3d3b613fe.zip
Pass size of correct variable to memset().
From Alexey Dobriyan. OK otto@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/net/getaddrinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/getaddrinfo.c b/src/lib/libc/net/getaddrinfo.c
index 500afceefa..b7d13003d2 100644
--- a/src/lib/libc/net/getaddrinfo.c
+++ b/src/lib/libc/net/getaddrinfo.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getaddrinfo.c,v 1.53 2005/07/18 14:38:39 jmc Exp $ */ 1/* $OpenBSD: getaddrinfo.c,v 1.54 2006/03/22 13:29:26 ray Exp $ */
2/* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */ 2/* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */
3 3
4/* 4/*
@@ -1185,7 +1185,7 @@ _dns_getaddrinfo(const char *name, const struct addrinfo *pai)
1185 struct addrinfo sentinel, *cur; 1185 struct addrinfo sentinel, *cur;
1186 struct res_target q, q2; 1186 struct res_target q, q2;
1187 1187
1188 memset(&q, 0, sizeof(q2)); 1188 memset(&q, 0, sizeof(q));
1189 memset(&q2, 0, sizeof(q2)); 1189 memset(&q2, 0, sizeof(q2));
1190 memset(&sentinel, 0, sizeof(sentinel)); 1190 memset(&sentinel, 0, sizeof(sentinel));
1191 cur = &sentinel; 1191 cur = &sentinel;