X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmctap.c;fp=src%2Fmctap.c;h=2bec00f3ce4c80dfad32e0617d22cc745390ed98;hb=3cb771e8cb4d29cc95da149f98b8137503c9c1f4;hp=472af0124ca4e12cbf3a47fad3d9c6f337cd81de;hpb=4969792065275ee0b997a4fa8841b00a93781a8e;p=mctap.git diff --git a/src/mctap.c b/src/mctap.c index 472af01..2bec00f 100644 --- a/src/mctap.c +++ b/src/mctap.c @@ -146,7 +146,7 @@ static void bridge(int sock, int tap, struct sockaddr *dst, socklen_t dstlen) pi.flags = 0; pi.proto = 0; memcpy(buf, &pi, sizeof(pi)); - write(tap, buf, ret); + write(tap, buf, sizeof(pi) + ret); } } }