+ if ( extrasize ) {
+ if ( write(fd, extradata, extrasize) != extrasize )
+ tlog(TL_CRIT|TL_EXIT, "write failed: %s", strerror(errno));
+ if ( extrasize != MAXALIGN(extrasize) ) {
+ char dummy[8] = {0,0,0,0,0,0,0,0};
+ if ( write(fd, dummy, MAXALIGN(extrasize) - extrasize ) != MAXALIGN(extrasize) - extrasize )
+ tlog(TL_CRIT|TL_EXIT, "write failed: %s", strerror(errno));
+
+ extrasize = MAXALIGN(extrasize);
+ }
+ }
+