Revision 9a158361 sysdep/unix/io.c

View differences:

sysdep/unix/io.c
414 414
#ifdef HAVE_STRUCT_IP_MREQN
415 415
	struct ip_mreqn mreq;
416 416
#define mreq_add mreq
417
	ASSERT(s->iface);
417
	ASSERT(s->iface && s->iface->addr);
418 418
	mreq.imr_ifindex = s->iface->index;
419
	set_inaddr(&mreq.imr_address, s->iface->ip);
419
	set_inaddr(&mreq.imr_address, s->iface->addr->ip);
420 420
#else
421 421
	struct in_addr mreq;
422 422
	struct ip_mreq mreq_add;
423
	ASSERT(s->iface);
424
	set_inaddr(&mreq, s->iface->ip);
423
	ASSERT(s->iface && s->iface->addr);
424
	set_inaddr(&mreq, s->iface->addr->ip);
425 425
#ifdef SO_BINDTODEVICE
426 426
	{
427 427
	  struct ifreq ifr;

Also available in: Unified diff