From: jca Date: Wed, 5 Apr 2017 14:48:48 +0000 (+0000) Subject: sendmsg returns a signed value, fix error check X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cd4d7460a3bf981e68f7a29d9befeaba879f64cf;p=openbsd sendmsg returns a signed value, fix error check ok millert@ deraadt@ --- 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);