diff options
author | Colin Watson <cjwatson@debian.org> | 2016-08-06 10:49:58 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2016-08-06 10:49:58 +0100 |
commit | a8ed8d256b2e2c05b0c15565a7938028c5192277 (patch) | |
tree | 87abbdc914a38b43e4e5bb9581ad1f46eabbf88e /openbsd-compat/bindresvport.c | |
parent | f0329aac23c61e1a5197d6d57349a63f459bccb0 (diff) | |
parent | 99522ba7ec6963a05c04a156bf20e3ba3605987c (diff) |
Import openssh_7.3p1.orig.tar.gz
Diffstat (limited to 'openbsd-compat/bindresvport.c')
-rw-r--r-- | openbsd-compat/bindresvport.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsd-compat/bindresvport.c b/openbsd-compat/bindresvport.c index c89f21403..eeb269d59 100644 --- a/openbsd-compat/bindresvport.c +++ b/openbsd-compat/bindresvport.c | |||
@@ -64,6 +64,7 @@ bindresvport_sa(int sd, struct sockaddr *sa) | |||
64 | if (sa == NULL) { | 64 | if (sa == NULL) { |
65 | memset(&myaddr, 0, sizeof(myaddr)); | 65 | memset(&myaddr, 0, sizeof(myaddr)); |
66 | sa = (struct sockaddr *)&myaddr; | 66 | sa = (struct sockaddr *)&myaddr; |
67 | salen = sizeof(myaddr); | ||
67 | 68 | ||
68 | if (getsockname(sd, sa, &salen) == -1) | 69 | if (getsockname(sd, sa, &salen) == -1) |
69 | return -1; /* errno is correctly set */ | 70 | return -1; /* errno is correctly set */ |