Fix unlink of the temporary file to determine the timediff.

This commit is contained in:
Andreas Schneider 2008-05-15 17:26:26 +02:00
parent db839ef5d3
commit f89333c3c8

View file

@ -104,10 +104,15 @@ time_t csync_timediff(CSYNC *ctx) {
out:
csync_vio_file_stat_destroy(st);
ctx->replica = ctx->local.type;
csync_vio_unlink(ctx, luri);
SAFE_FREE(luri);
ctx->replica = ctx->remote.type;
csync_vio_unlink(ctx, ruri);
SAFE_FREE(ruri);
return timediff;
}