mirror of
https://github.com/clearml/dropbear
synced 2025-06-09 16:07:33 +00:00
Update netio.c (#115)
Moved allocated_lport_p and allocated_lport at begin of block to buld in C89
This commit is contained in:
parent
ae94f64145
commit
934cc87db3
4
netio.c
4
netio.c
@ -459,6 +459,8 @@ int dropbear_listen(const char* address, const char* port,
|
|||||||
struct linger linger;
|
struct linger linger;
|
||||||
int val;
|
int val;
|
||||||
int sock;
|
int sock;
|
||||||
|
u_int16_t *allocated_lport_p = NULL;
|
||||||
|
int allocated_lport = 0;
|
||||||
|
|
||||||
TRACE(("enter dropbear_listen"))
|
TRACE(("enter dropbear_listen"))
|
||||||
|
|
||||||
@ -509,8 +511,6 @@ int dropbear_listen(const char* address, const char* port,
|
|||||||
* caller can do a get_socket_address to discover assigned-port
|
* caller can do a get_socket_address to discover assigned-port
|
||||||
* hence, use same port for all address families
|
* hence, use same port for all address families
|
||||||
*/
|
*/
|
||||||
u_int16_t *allocated_lport_p = NULL;
|
|
||||||
int allocated_lport = 0;
|
|
||||||
|
|
||||||
nsock = 0;
|
nsock = 0;
|
||||||
for (res = res0; res != NULL && nsock < sockcount;
|
for (res = res0; res != NULL && nsock < sockcount;
|
||||||
|
Loading…
Reference in New Issue
Block a user