Systemd/src/nss-resolve
Thomas Hindoe Paaboel Andersen 66a16e7e9f nss: remove dead code
c > 0 is already guaranteed from earlier checks.

We go from

ms = ALIGN(l+1) +
        sizeof(char*) +
        (c > 0 ? c : 1) * ALIGN(alen) +
        (c > 0 ? c+1 : 2) * sizeof(char*);

to

ms = ALIGN(l+1) +
        sizeof(char*) +
        c * ALIGN(alen) +
        (c+1) * sizeof(char*);

to

ms = ALIGN(l+1) + c * ALIGN(alen) + (c+2) * sizeof(char*);

Found by coverity. Fixes: CID#1237570 and CID#1237610
2014-09-19 00:15:39 +02:00
..
Makefile resolved: add small NSS module that uses resolved to resolve DNS names 2014-07-16 03:31:30 +02:00
nss-resolve.c nss: remove dead code 2014-09-19 00:15:39 +02:00
nss-resolve.sym resolved: add small NSS module that uses resolved to resolve DNS names 2014-07-16 03:31:30 +02:00