dnsd: fix 64-bit bug 2539.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
caddfc8339
commit
dc8ef353fd
@ -388,7 +388,7 @@ static int process_packet(struct dns_entry *conf_data,
|
|||||||
query_len = strlen(query_string) + 1;
|
query_len = strlen(query_string) + 1;
|
||||||
/* may be unaligned! */
|
/* may be unaligned! */
|
||||||
unaligned_type_class = (void *)(query_string + query_len);
|
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 */
|
/* where to append answer block */
|
||||||
answb = (void *)(unaligned_type_class + 1);
|
answb = (void *)(unaligned_type_class + 1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user