Skip to content

Commit

Permalink
WHOEVER WROTE THAT IS A DANGEROUS PSYCHOPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Nov 4, 2015
1 parent 158c766 commit 8b8772f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generic/tcp_proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ int tcp_write(int fd, char *buf, int len)
{
register char *ptr;

/* \/ WHOEVER WROTE THAT IS A DANGEROUS PSYCHOPATH \/ */
ptr = buf - sizeof(short);

*((unsigned short *)ptr) = htons(len);
/* /\ WHOEVER WROTE THAT IS A DANGEROUS PSYCHOPATH /\ */
len = (len & VTUN_FSIZE_MASK) + sizeof(short);

return write_n(fd, ptr, len);
Expand Down

0 comments on commit 8b8772f

Please sign in to comment.