summaryrefslogtreecommitdiffstats
path: root/src/proto/tftm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/proto/tftm.c')
-rw-r--r--src/proto/tftm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/proto/tftm.c b/src/proto/tftm.c
index cebb610c..fb011c62 100644
--- a/src/proto/tftm.c
+++ b/src/proto/tftm.c
@@ -14,20 +14,20 @@
static inline int tftm_process_opts ( struct tftp_state *state,
struct tftp_oack *oack ) {
- struct in_addr old_mcast_addr = state->client.sin_addr;
+ struct in_addr old_mcast_addr = state->multicast.sin_addr;
if ( ! tftp_process_opts ( state, oack ) )
return 0;
- if ( old_mcast_addr.s_addr != state->client.sin_addr.s_addr ) {
+ if ( old_mcast_addr.s_addr != state->multicast.sin_addr.s_addr ) {
if ( old_mcast_addr.s_addr ) {
DBG ( "TFTM: Leaving multicast group %@\n",
old_mcast_addr.s_addr );
leave_group ( IGMP_SERVER );
}
DBG ( "TFTM: Joining multicast group %@\n",
- state->client.sin_addr.s_addr );
- join_group ( IGMP_SERVER, state->client.sin_addr.s_addr );
+ state->multicast.sin_addr.s_addr );
+ join_group ( IGMP_SERVER, state->multicast.sin_addr.s_addr );
}
DBG ( "TFTM: I am a %s client\n",
@@ -195,7 +195,7 @@ static int tftm ( char *url __unused, struct sockaddr_in *server, char *file,
rc = 1;
out:
- if ( state.client.sin_addr.s_addr ) {
+ if ( state.multicast.sin_addr.s_addr ) {
leave_group ( IGMP_SERVER );
}
return rc;