ptserver: Zero ubik header before writing to it
[openafs.git] / src / ptserver / ptubik.c
index 6ca0eef..f059d2c 100644 (file)
@@ -33,6 +33,7 @@ ubik_BeginTrans(struct ubik_dbase *dbase, afs_int32 transMode,
     struct ubik_hdr thdr;
 
     if (!init) {
+       memset(&thdr, 0, sizeof(thdr));
        thdr.version.epoch = htonl(2);
        thdr.version.counter = htonl(0);
        thdr.magic = htonl(UBIK_MAGIC);