Fix uninitialised memory read when initialising cycbuffs
Alex Kiernan
alexk at demon.net
Wed Mar 28 16:13:33 UTC 2001
Index: storage/cnfs/cnfs.c
===================================================================
RCS file: /upstream-repositories/inn-cvs.isc.org/inn/storage/cnfs/cnfs.c,v
retrieving revision 1.83
diff -u -r1.83 cnfs.c
--- storage/cnfs/cnfs.c 2001/03/19 05:16:38 1.83
+++ storage/cnfs/cnfs.c 2001/03/28 16:12:35
@@ -619,6 +619,7 @@
cycbuff->currentbuff = TRUE;
cycbuff->order = 0; /* to indicate this is newly added cycbuff */
cycbuff->needflush = TRUE;
+ memset(cycbuff->metaname, '\0', CNFSLASIZ);
if (!CNFSflushhead(cycbuff))
return FALSE;
}
--
Alex Kiernan, Principal Engineer, Development, Thus PLC
More information about the inn-patches
mailing list