diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-10-29 00:37:56 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-10-29 00:37:56 +0200 |
| commit | dc8ef353fd8ae0641a53c2507138155dcd5f76e7 (patch) | |
| tree | 3bcacce3153a8067041faafc10d1067a32841f72 | |
| parent | caddfc83399ab783f032dbe23f3b10a5bd85414f (diff) | |
| download | busybox-w32-dc8ef353fd8ae0641a53c2507138155dcd5f76e7.tar.gz busybox-w32-dc8ef353fd8ae0641a53c2507138155dcd5f76e7.tar.bz2 busybox-w32-dc8ef353fd8ae0641a53c2507138155dcd5f76e7.zip | |
dnsd: fix 64-bit bug 2539.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | networking/dnsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/dnsd.c b/networking/dnsd.c index 92d4867aa..8ed31cea2 100644 --- a/networking/dnsd.c +++ b/networking/dnsd.c | |||
| @@ -388,7 +388,7 @@ static int process_packet(struct dns_entry *conf_data, | |||
| 388 | query_len = strlen(query_string) + 1; | 388 | query_len = strlen(query_string) + 1; |
| 389 | /* may be unaligned! */ | 389 | /* may be unaligned! */ |
| 390 | unaligned_type_class = (void *)(query_string + query_len); | 390 | unaligned_type_class = (void *)(query_string + query_len); |
| 391 | query_len += sizeof(unaligned_type_class); | 391 | query_len += sizeof(*unaligned_type_class); |
| 392 | /* where to append answer block */ | 392 | /* where to append answer block */ |
| 393 | answb = (void *)(unaligned_type_class + 1); | 393 | answb = (void *)(unaligned_type_class + 1); |
| 394 | 394 | ||
