projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caddfc8
)
dnsd: fix 64-bit bug 2539.
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 28 Oct 2010 22:37:56 +0000
(
00:37
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 28 Oct 2010 22:37:56 +0000
(
00:37
+0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/dnsd.c
patch
|
blob
|
history
diff --git
a/networking/dnsd.c
b/networking/dnsd.c
index 92d4867aa9a47913d38f5946bcbacf93dbfb6fb5..8ed31cea246706d4aef330df28090d141d0a37ce 100644
(file)
--- a/
networking/dnsd.c
+++ b/
networking/dnsd.c
@@
-388,7
+388,7
@@
static int process_packet(struct dns_entry *conf_data,
query_len = strlen(query_string) + 1;
/* may be unaligned! */
unaligned_type_class = (void *)(query_string + query_len);
- query_len += sizeof(unaligned_type_class);
+ query_len += sizeof(
*
unaligned_type_class);
/* where to append answer block */
answb = (void *)(unaligned_type_class + 1);