/[svn]/hopm/trunk/src/firedns.c
ViewVC logotype

Diff of /hopm/trunk/src/firedns.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5950 by michael, Tue May 5 18:58:04 2015 UTC revision 5951 by michael, Fri May 8 20:36:50 2015 UTC
# Line 470  firedns_send_requests(struct s_header *h Line 470  firedns_send_requests(struct s_header *h
470    
471      if (s->fd != -1)      if (s->fd != -1)
472      {      {
       struct sockaddr_in6 addr6;  
   
473        memset(&addr6, 0, sizeof(addr6));        memset(&addr6, 0, sizeof(addr6));
474        addr6.sin6_family = AF_INET6;        addr6.sin6_family = AF_INET6;
475    
# Line 497  firedns_send_requests(struct s_header *h Line 495  firedns_send_requests(struct s_header *h
495    
496      if (s->fd != -1)      if (s->fd != -1)
497      {      {
498        struct sockaddr_in addr;        memset(&addr4, 0, sizeof(addr4));
499          addr4.sin_family = AF_INET;
500        memset(&addr, 0, sizeof(addr));        addr4.sin_port = 0;
501        addr.sin_family = AF_INET;        addr4.sin_addr.s_addr = INADDR_ANY;
       addr.sin_port = 0;  
       addr.sin_addr.s_addr = INADDR_ANY;  
502    
503        if (bind(s->fd, (struct sockaddr *)&addr, sizeof(addr)) != 0)        if (bind(s->fd, (struct sockaddr *)&addr4, sizeof(addr4)) != 0)
504        {        {
505          close(s->fd);          close(s->fd);
506          s->fd = -1;          s->fd = -1;

Legend:
Removed from v.5950  
changed lines
  Added in v.5951

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28