dcavalca / rpms / linuxptp

Forked from rpms/linuxptp 2 years ago
Clone

Blame SOURCES/linuxptp-addreq.patch

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