diff options
author | sam <sam@FreeBSD.org> | 2005-02-23 22:53:04 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-02-23 22:53:04 +0000 |
commit | 87ad220d1bce1bcef65f52684cd9164d146ff19a (patch) | |
tree | bb9022f72975dc3384ddd77da54c22a4e666935b /sys/netinet6/ipsec.c | |
parent | bec849c3e1e4f0db5f9dc1519bc490c86228878c (diff) | |
download | FreeBSD-src-87ad220d1bce1bcef65f52684cd9164d146ff19a.zip FreeBSD-src-87ad220d1bce1bcef65f52684cd9164d146ff19a.tar.gz |
eliminate dead code
Noticed by: Coverity Prevent analysis tool
Diffstat (limited to 'sys/netinet6/ipsec.c')
-rw-r--r-- | sys/netinet6/ipsec.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netinet6/ipsec.c b/sys/netinet6/ipsec.c index c53e62b..07d9734 100644 --- a/sys/netinet6/ipsec.c +++ b/sys/netinet6/ipsec.c @@ -2481,15 +2481,15 @@ ipsec6_logpacketstr(ip6, spi) p = buf; snprintf(buf, sizeof(buf), "packet(SPI=%u ", (u_int32_t)ntohl(spi)); - while (p && *p) + while (*p) p++; snprintf(p, sizeof(buf) - (p - buf), "src=%s", ip6_sprintf(&ip6->ip6_src)); - while (p && *p) + while (*p) p++; snprintf(p, sizeof(buf) - (p - buf), " dst=%s", ip6_sprintf(&ip6->ip6_dst)); - while (p && *p) + while (*p) p++; snprintf(p, sizeof(buf) - (p - buf), ")"); @@ -2512,7 +2512,7 @@ ipsec_logsastr(sav) p = buf; snprintf(buf, sizeof(buf), "SA(SPI=%u ", (u_int32_t)ntohl(sav->spi)); - while (p && *p) + while (*p) p++; if (((struct sockaddr *)&saidx->src)->sa_family == AF_INET) { u_int8_t *s, *d; @@ -2527,14 +2527,14 @@ ipsec_logsastr(sav) snprintf(p, sizeof(buf) - (p - buf), "src=%s", ip6_sprintf(&((struct sockaddr_in6 *)&saidx->src)->sin6_addr)); - while (p && *p) + while (*p) p++; snprintf(p, sizeof(buf) - (p - buf), " dst=%s", ip6_sprintf(&((struct sockaddr_in6 *)&saidx->dst)->sin6_addr)); } #endif - while (p && *p) + while (*p) p++; snprintf(p, sizeof(buf) - (p - buf), ")"); |