summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuillaume Picquet <guillaume.picquet@gls-france.com>2021-03-04 13:50:13 +0100
committerGitHub <noreply@github.com>2021-03-04 20:50:13 +0800
commit934cc87db342517b0d8c85b73848788b0e79c2f3 (patch)
tree9d64810e3061a3870b5d8c37f96364b873fa3244
parentae94f6414573cf548e9f4218f7bbd4d4fdc30206 (diff)
Update netio.c (#115)
Moved allocated_lport_p and allocated_lport at begin of block to buld in C89
-rw-r--r--netio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/netio.c b/netio.c
index 83ae33c..94cbece 100644
--- a/netio.c
+++ b/netio.c
@@ -459,7 +459,9 @@ int dropbear_listen(const char* address, const char* port,
struct linger linger;
int val;
int sock;
-
+ u_int16_t *allocated_lport_p = NULL;
+ int allocated_lport = 0;
+
TRACE(("enter dropbear_listen"))
#if DROPBEAR_FUZZ
@@ -509,8 +511,6 @@ int dropbear_listen(const char* address, const char* port,
* caller can do a get_socket_address to discover assigned-port
* hence, use same port for all address families
*/
- u_int16_t *allocated_lport_p = NULL;
- int allocated_lport = 0;
nsock = 0;
for (res = res0; res != NULL && nsock < sockcount;