1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

misc: Fix expanding port numbers

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Andreas Schneider
2022-08-29 10:03:40 +02:00
parent 20406e51c9
commit 648baf0f3c

View File

@@ -1237,7 +1237,7 @@ char *ssh_path_expand_escape(ssh_session session, const char *s)
}
break;
case 'p':
if (session->opts.port > 0) {
{
char tmp[6];
snprintf(tmp, sizeof(tmp), "%hu",