diff --git a/pscp.c b/pscp.c index 8a19c7f4..230f15d1 100644 --- a/pscp.c +++ b/pscp.c @@ -1405,6 +1405,7 @@ int scp_get_sink_action(struct scp_sink_action *act) &act->mtime, &act->atime) == 2) { act->settime = true; backend_send(backend, "", 1); + act->buf->len = 0; continue; /* go round again */ } bump("Protocol error: Illegal time format");