]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/multilink.c
plugins/radius: Eliminate some potential buffer overruns
[ppp.git] / pppd / multilink.c
index 07bd6d0c62b2ca769299978c6ce5cdf17bc3bbe6..ddd848c3270bcba9c8dbeda4c6324fbc2151989d 100644 (file)
@@ -430,13 +430,11 @@ owns_unit(TDB_DATA key, int unit)
 static int
 get_default_epdisc(struct epdisc *ep)
 {
-       char *p;
        struct hostent *hp;
        u_int32_t addr;
 
        /* First try for an ethernet MAC address */
-       p = get_first_ethernet();
-       if (p != 0 && get_if_hwaddr(ep->value, p) >= 0) {
+       if (get_first_ether_hwaddr(ep->value) >= 0) {
                ep->class = EPD_MAC;
                ep->length = 6;
                return 1;