diff options
| -rw-r--r-- | daemon/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/device.c b/daemon/device.c index 824edac..acedbdf 100644 --- a/daemon/device.c +++ b/daemon/device.c | |||
| @@ -166,7 +166,7 @@ static int send_packet(struct mux_device *dev, enum mux_protocol proto, void *he | |||
| 166 | buffer = malloc(total); | 166 | buffer = malloc(total); |
| 167 | struct mux_header *mhdr = (struct mux_header *)buffer; | 167 | struct mux_header *mhdr = (struct mux_header *)buffer; |
| 168 | mhdr->protocol = htonl(proto); | 168 | mhdr->protocol = htonl(proto); |
| 169 | mhdr->length = htonl(total);; | 169 | mhdr->length = htonl(total); |
| 170 | memcpy(buffer + sizeof(struct mux_header), header, hdrlen); | 170 | memcpy(buffer + sizeof(struct mux_header), header, hdrlen); |
| 171 | if(data && length) | 171 | if(data && length) |
| 172 | memcpy(buffer + sizeof(struct mux_header) + hdrlen, data, length); | 172 | memcpy(buffer + sizeof(struct mux_header) + hdrlen, data, length); |
