Fix for bug 1310
bk: 4aafca20avY7jSMWMi7S9pbbEG5nbg
+* [Bug 1310] fix Thunderbolt mode in refclock_palisade.c
* [Bug 983] add interface [listen | ignore | drop] ... directive.
* [Bug 1243] MD5auth_setkey zero-fills key from first zero octet.
* [Bug 1295] leftover fix, do not crash on exit in free_config_trap()
int fd
)
{
- struct packettx buf;
-
-/* buf.data = (u_char *) malloc(1); */
+ struct packettx tx;
+ tx.size = 0;
+ tx.data = (u_char *) malloc(100);
+
/* set UTC time */
- sendsupercmd (&buf, 0x8E, 0xA2);
- sendbyte (&buf, 0x3);
- sendetx (&buf, fd);
+ sendsupercmd (&tx, 0x8E, 0xA2);
+ sendbyte (&tx, 0x3);
+ sendetx (&tx, fd);
/* activate packets 0x8F-AB and 0x8F-AC */
- sendsupercmd (&buf, 0x8F, 0xA5);
- sendint (&buf, 0x5);
- sendetx (&buf, fd);
+ sendsupercmd (&tx, 0x8F, 0xA5);
+ sendint (&tx, 0x5);
+ sendetx (&tx, fd);
+
+ free(tx.data);
}
/*