diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2011-01-08 14:50:30 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2011-01-08 14:50:30 +0000 |
commit | 2d9f7419c26fa28811b15af112ef2911f35fc53b (patch) | |
tree | f1da2cae2eea358199c9f32708c4ab652d32dc28 /usr.sbin | |
parent | 525d5f2d3e80286fcc6add01cb7d258b44b9c873 (diff) |
Count the right values for the consumed counter.
Problem found and fix provided by Marcel Wiget <mwiget () gmail ! com>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ldpd/hello.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <michele@openbsd.org> @@ -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); |