Mercurial > dropbear
changeset 1796:74f4a5987234
Update netio.c (#115)
Moved allocated_lport_p and allocated_lport at begin of block to buld in C89
author | Guillaume Picquet <guillaume.picquet@gls-france.com> |
---|---|
date | Thu, 04 Mar 2021 13:50:13 +0100 |
parents | f0a524208d97 |
children | f680a19bd559 |
files | netio.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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;