From 2d9f7419c26fa28811b15af112ef2911f35fc53b Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Sat, 8 Jan 2011 14:50:30 +0000 Subject: Count the right values for the consumed counter. Problem found and fix provided by Marcel Wiget --- usr.sbin/ldpd/hello.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/ldpd/hello.c b/usr.sbin/ldpd/hello.c index 4a506c1d6d2..a0d81d01259 100644 --- a/usr.sbin/ldpd/hello.c +++ b/usr.sbin/ldpd/hello.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hello.c,v 1.7 2010/11/04 09:52:16 claudio Exp $ */ +/* $OpenBSD: hello.c,v 1.8 2011/01/08 14:50:29 claudio Exp $ */ /* * Copyright (c) 2009 Michele Marchetto @@ -227,7 +227,7 @@ tlv_decode_opt_hello_prms(char *buf, u_int16_t len, struct in_addr *addr, len -= sizeof(tlv); buf += sizeof(tlv); - cons += sizeof(cons); + cons += sizeof(tlv); } return (cons); -- cgit v1.2.3