# HG changeset patch # User Guillaume Picquet # Date 1614862213 -3600 # Node ID 74f4a598723466b376ff6ef9b8ae3b803ea8d374 # Parent f0a524208d978cd467b205cb3f2c15558889f71f Update netio.c (#115) Moved allocated_lport_p and allocated_lport at begin of block to buld in C89 diff -r f0a524208d97 -r 74f4a5987234 netio.c --- a/netio.c Thu Mar 04 13:46:46 2021 +0100 +++ b/netio.c Thu Mar 04 13:50:13 2021 +0100 @@ -459,7 +459,9 @@ 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 @@ * 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;