dcavalca / rpms / linuxptp

Forked from rpms/linuxptp 2 years ago
Clone

Blame SOURCES/linuxptp-addreq.patch

4b595f
diff -up linuxptp-2.0/util.c.addreq linuxptp-2.0/util.c
4b595f
--- linuxptp-2.0/util.c.addreq	2019-03-25 11:43:55.878146767 +0100
4b595f
+++ linuxptp-2.0/util.c	2019-03-25 11:44:38.215244483 +0100
4b595f
@@ -78,7 +78,7 @@ int addreq(enum transport_type type, str
4b595f
 	case TRANS_UDP_IPV4:
4b595f
 		bufa = &a->sin.sin_addr;
4b595f
 		bufb = &b->sin.sin_addr;
4b595f
-		len = sizeof(a->sin);
4b595f
+		len = sizeof(a->sin.sin_addr);
4b595f
 		break;
4b595f
 	case TRANS_IEEE_802_3:
4b595f
 		bufa = &a->sll.sll_addr;