summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2019-02-08 15:41:19 +0000
committerColin Watson <cjwatson@debian.org>2019-02-08 16:24:58 +0000
commitbbf87fe18360e9dabdeb9af0cadff0f8087a5492 (patch)
tree6aba9afdccceb18a863f0fc6c89d3ec06a2961ac /scp.c
parentd6448492718c5e1174323eebcc696364e96d5047 (diff)
parent2a8f710447442e9a03e71c022859112ec2d77d17 (diff)
Sanitize scp filenames via snmprintf
CVE-2019-6109 Closes: #793412
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scp.c b/scp.c
index 7163d33dc..1971c80cd 100644
--- a/scp.c
+++ b/scp.c
@@ -593,6 +593,7 @@ scpio(void *_cnt, size_t s)
593 off_t *cnt = (off_t *)_cnt; 593 off_t *cnt = (off_t *)_cnt;
594 594
595 *cnt += s; 595 *cnt += s;
596 refresh_progress_meter(0);
596 if (limit_kbps > 0) 597 if (limit_kbps > 0)
597 bandwidth_limit(&bwlimit, s); 598 bandwidth_limit(&bwlimit, s);
598 return 0; 599 return 0;