projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
654733a
)
Fix incorrect sizeof() in ares_save_options
author
Jakub Hrozek
<jhrozek@redhat.com>
Tue, 14 Jun 2011 14:33:09 +0000
(16:33 +0200)
committer
Jakub Hrozek
<jhrozek@redhat.com>
Tue, 14 Jun 2011 14:41:29 +0000
(16:41 +0200)
ares_init.c
patch
|
blob
|
history
diff --git
a/ares_init.c
b/ares_init.c
index d80b9637fe2256fe0b2bb7437bd6ac5ea3adaf65..44d4cf934f7a1b4663a7bfdf427856b0fb1834d7 100644
(file)
--- a/
ares_init.c
+++ b/
ares_init.c
@@
-361,7
+361,7
@@
int ares_save_options(ares_channel channel, struct ares_options *options,
ipv4_nservers++;
}
if (ipv4_nservers) {
- options->servers = malloc(ipv4_nservers * sizeof(struct
server_state
));
+ options->servers = malloc(ipv4_nservers * sizeof(struct
in_addr
));
if (!options->servers)
return ARES_ENOMEM;
for (i = j = 0; i < channel->nservers; i++)