/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to plugins.d/mandos-client.c

  • Committer: Teddy Hogeborn
  • Date: 2009-02-25 12:20:01 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090225122001-ty7zobjk6snyo0o3
* plugins.d/mandos-client.c (start_mandos_communication): "sin6_family"
                                                          in the
                                                          "sockaddr_in6"
                                                          struct is a
                                                          "sa_family_t",
                                                          not
                                                          "uint16_t".

Show diffs side-by-side

added added

removed removed

Lines of Context:
566
566
  
567
567
  memset(&to, 0, sizeof(to));
568
568
  if(af == AF_INET6){
569
 
    to.in6.sin6_family = (uint16_t)af;
 
569
    to.in6.sin6_family = (sa_family_t)af;
570
570
    ret = inet_pton(af, ip, &to.in6.sin6_addr);
571
571
  } else {                      /* IPv4 */
572
572
    to.in.sin_family = (sa_family_t)af;