Initialize lastport in all cases it is defined.

This commit is contained in:
oliverschmidt 2010-02-04 21:33:51 +00:00
parent d8b0625e21
commit 5e66abda50
2 changed files with 6 additions and 6 deletions

View file

@ -41,7 +41,7 @@
*
* This file is part of the uIP TCP/IP stack.
*
* $Id: uip.c,v 1.20 2010/02/04 21:14:45 adamdunkels Exp $
* $Id: uip.c,v 1.21 2010/02/04 21:33:51 oliverschmidt Exp $
*
*/
@ -378,9 +378,9 @@ uip_init(void)
for(c = 0; c < UIP_CONNS; ++c) {
uip_conns[c].tcpstateflags = UIP_CLOSED;
}
#if UIP_ACTIVE_OPEN
#if UIP_ACTIVE_OPEN || UIP_UDP
lastport = 1024;
#endif /* UIP_ACTIVE_OPEN */
#endif /* UIP_ACTIVE_OPEN || UIP_UDP */
#if UIP_UDP
for(c = 0; c < UIP_UDP_CONNS; ++c) {

View file

@ -41,7 +41,7 @@
*
* This file is part of the uIP TCP/IP stack.
*
* $Id: uip6.c,v 1.10 2010/02/04 21:14:45 adamdunkels Exp $
* $Id: uip6.c,v 1.11 2010/02/04 21:33:51 oliverschmidt Exp $
*
*/
@ -417,9 +417,9 @@ uip_init(void)
}
#endif /* UIP_TCP */
#if UIP_ACTIVE_OPEN
#if UIP_ACTIVE_OPEN || UIP_UDP
lastport = 1024;
#endif /* UIP_ACTIVE_OPEN */
#endif /* UIP_ACTIVE_OPEN || UIP_UDP */
#if UIP_UDP
for(c = 0; c < UIP_UDP_CONNS; ++c) {