SHA256
1
0
forked from pool/uucp
uucp/uucp-1.07-cu.patch

15 lines
451 B
Diff
Raw Normal View History

--- cu.c
+++ cu.c Thu Jun 26 18:39:05 2003
@@ -565,6 +565,11 @@
sinfo.zline = zline;
if (zport != NULL || zline != NULL || ibaud != 0L)
{
+ /* Make sure _everything_ is initialized to zero.
+ * Otherwise some fields (such as uuconf_fcarrier)
+ * will be random. */
+ memset(&sport, 0, sizeof(sport));
+
iuuconf = uuconf_find_port (puuconf, zport, ibaud, 0L,
icuport_lock, (pointer) &sinfo,
&sport);