aboutsummaryrefslogtreecommitdiff
path: root/networking/dnsd.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-04-14 10:14:25 -0700
committerDenys Vlasenko <vda.linux@googlemail.com>2010-04-14 10:14:25 -0700
commit0ecc11659285337c0430f1b7004eb3b2901a93d3 (patch)
tree2d18e7be993b0b720b41b4e72601cb3c608f00a7 /networking/dnsd.c
parent8597da193474673a3caeffcf3d134bb2ed57aa4d (diff)
downloadbusybox-0ecc11659285337c0430f1b7004eb3b2901a93d3.tar.gz
dnsd: enforce alignment on packet buffer
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/dnsd.c')
-rw-r--r--networking/dnsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/dnsd.c b/networking/dnsd.c
index 6771c5346..c76a54f9e 100644
--- a/networking/dnsd.c
+++ b/networking/dnsd.c
@@ -480,7 +480,8 @@ int dnsd_main(int argc UNUSED_PARAM, char **argv)
unsigned lsa_size;
int udps, opts;
uint16_t port = 53;
- uint8_t buf[MAX_PACK_LEN + 1];
+ /* Ensure buf is 32bit aligned (we need 16bit, but 32bit can't hurt) */
+ uint8_t buf[MAX_PACK_LEN + 1] ALIGN4;
opts = getopt32(argv, "vsi:c:t:p:d", &listen_interface, &fileconf, &sttl, &sport);
//if (opts & (1 << 0)) // -v