Bug 2539 - dnsd not working on x86_64 systems
Summary: dnsd not working on x86_64 systems
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: 1.17.x
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-08 16:55 UTC by bonnart
Modified: 2010-10-28 22:39 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bonnart 2010-09-08 16:55:28 UTC
The positive anwsers from dnsd are not readable when dsnd is running on 64bits systems.
This is due to line 391 of dnsd.c : "query_len += sizeof(unaligned_type_class);".
unaligned_type_class is a pointer and what we want here is the size of the object. This object's size is 32bits this is why the problem only appears on 64 bits systems.
The solution is to change the line for : "query_len += sizeof(*unaligned_type_class);"

Best regards
Comment 1 Denys Vlasenko 2010-10-28 22:39:20 UTC
Excellent! Fixed in git and added to post-1.17.3 fixes:

http://busybox.net/downloads/fixes-1.17.3/busybox-1.17.3-dnsd.patch