From cd4d7460a3bf981e68f7a29d9befeaba879f64cf Mon Sep 17 00:00:00 2001 From: jca Date: Wed, 5 Apr 2017 14:48:48 +0000 Subject: [PATCH] sendmsg returns a signed value, fix error check ok millert@ deraadt@ --- usr.sbin/rtadvd/rtadvd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c index aba081a6a84..57d36ffce93 100644 --- a/usr.sbin/rtadvd/rtadvd.c +++ b/usr.sbin/rtadvd/rtadvd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtadvd.c,v 1.83 2017/01/20 23:29:58 benno Exp $ */ +/* $OpenBSD: rtadvd.c,v 1.84 2017/04/05 14:48:48 jca Exp $ */ /* $KAME: rtadvd.c,v 1.66 2002/05/29 14:18:36 itojun Exp $ */ /* @@ -1218,7 +1218,7 @@ ra_output(struct rainfo *rainfo) { struct cmsghdr *cm; struct in6_pktinfo *pi; - size_t len; + ssize_t len; if ((iflist[rainfo->ifindex]->ifm_flags & IFF_UP) == 0) { log_debug("%s is not up, skip sending RA", rainfo->ifname); -- 2.20.1