Diff for /embedaddon/sudo/plugins/sudoers/match_addr.c between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2012/05/29 12:26:49 version 1.1.1.3, 2013/07/22 10:46:12
Line 1 Line 1
 /*  /*
 * Copyright (c) 1996, 1998-2005, 2007-2011 * Copyright (c) 1996, 1998-2005, 2007-2013
  *      Todd C. Miller <Todd.Miller@courtesan.com>   *      Todd C. Miller <Todd.Miller@courtesan.com>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
Line 45 Line 45
 #endif /* HAVE_UNISTD_H */  #endif /* HAVE_UNISTD_H */
 #include <netinet/in.h>  #include <netinet/in.h>
 #include <arpa/inet.h>  #include <arpa/inet.h>
 #include <netdb.h>  
   
 #include "sudoers.h"  #include "sudoers.h"
 #include "interfaces.h"  #include "interfaces.h"
Line 71  addr_matches_if(char *n) Line 70  addr_matches_if(char *n)
         addr.ip4.s_addr = inet_addr(n);          addr.ip4.s_addr = inet_addr(n);
     }      }
   
    for (ifp = interfaces; ifp != NULL; ifp = ifp->next) {    for (ifp = get_interfaces(); ifp != NULL; ifp = ifp->next) {
         if (ifp->family != family)          if (ifp->family != family)
             continue;              continue;
         switch (family) {          switch (family) {
Line 154  addr_matches_if_netmask(char *n, char *m) Line 153  addr_matches_if_netmask(char *n, char *m)
     }      }
 #endif /* HAVE_STRUCT_IN6_ADDR */  #endif /* HAVE_STRUCT_IN6_ADDR */
   
    for (ifp = interfaces; ifp != NULL; ifp = ifp->next) {    for (ifp = get_interfaces(); ifp != NULL; ifp = ifp->next) {
         if (ifp->family != family)          if (ifp->family != family)
             continue;              continue;
         switch (family) {          switch (family) {

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>