diff options
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh.c,v 1.426 2015/09/24 06:15:11 djm Exp $ */ | 1 | /* $OpenBSD: ssh.c,v 1.427 2015/10/15 23:51:40 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -250,7 +250,7 @@ resolve_host(const char *name, int port, int logerr, char *cname, size_t clen) | |||
250 | if (port <= 0) | 250 | if (port <= 0) |
251 | port = default_ssh_port(); | 251 | port = default_ssh_port(); |
252 | 252 | ||
253 | snprintf(strport, sizeof strport, "%u", port); | 253 | snprintf(strport, sizeof strport, "%d", port); |
254 | memset(&hints, 0, sizeof(hints)); | 254 | memset(&hints, 0, sizeof(hints)); |
255 | hints.ai_family = options.address_family == -1 ? | 255 | hints.ai_family = options.address_family == -1 ? |
256 | AF_UNSPEC : options.address_family; | 256 | AF_UNSPEC : options.address_family; |