summaryrefslogtreecommitdiff
path: root/net/tftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tftp.c')
-rw-r--r--net/tftp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/tftp.c b/net/tftp.c
index eacd529a98e..f83c0d6f8c1 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -136,8 +136,10 @@ static void parse_multicast_oack(char *pkt, int len);
static void
mcast_cleanup(void)
{
- if (Mcast_addr) eth_mcast_join(Mcast_addr, 0);
- if (Bitmap) free(Bitmap);
+ if (Mcast_addr)
+ eth_mcast_join(Mcast_addr, 0);
+ if (Bitmap)
+ free(Bitmap);
Bitmap = NULL;
Mcast_addr = Multicast = Mcast_port = 0;
TftpEndingBlock = -1;
@@ -703,7 +705,8 @@ static void parse_multicast_oack(char *pkt, int len)
}
}
}
- if (!port || !mc_adr || !mc) return;
+ if (!port || !mc_adr || !mc)
+ return;
if (Multicast && MasterClient) {
printf("I got a OACK as master Client, WRONG!\n");
return;