Fix: Tunnel creation does not work when the length of the hostname is odd. (revert fix: Add a uint16_t control buffer type, as a union)

This commit is contained in:
fendo 2013-02-26 00:25:45 +01:00
parent ec1507a6c2
commit 9e78f1af54
2 changed files with 40 additions and 44 deletions

View file

@ -247,10 +247,7 @@ typedef struct controls // control message
{
struct controls *next; // next in queue
uint16_t length; // length
union {
uint8_t buf[MAXCONTROL];
uint16_t buf16[MAXCONTROL/2];
} __attribute__ ((__transparent_union__));
uint8_t buf[MAXCONTROL];
}
controlt;