Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 627338
Collapse All | Expand All

(-)a/src/nss.c (-6 / +1 lines)
Lines 271-282 enum nss_status _nss_mdns_gethostbyname4_r( Link Here
271
        tuple->family = u.data.result[i].af;
271
        tuple->family = u.data.result[i].af;
272
272
273
        // Copy address
273
        // Copy address
274
        memset(&(tuple->addr), 0, sizeof(ipv6_address_t));
274
        memcpy(&(tuple->addr), &(u.data.result[i].address), address_length);
275
        memcpy(&(tuple->addr), &(u.data.result[i].address), address_length);
275
        if(address_length < sizeof(ipv6_address_t)) {
276
            memset((&(tuple->addr) + address_length - sizeof(ipv6_address_t)), 0,
277
                (sizeof(ipv6_address_t) - address_length)
278
            );
279
        }
280
276
281
        // Assign interface scope id
277
        // Assign interface scope id
282
        tuple->scopeid = u.data.result[i].scopeid;
278
        tuple->scopeid = u.data.result[i].scopeid;
283
- 

Return to bug 627338