-/* $OpenBSD: obj_dat.c,v 1.31 2014/08/08 04:53:43 guenther Exp $ */
+/* $OpenBSD: obj_dat.c,v 1.32 2015/10/14 21:02:08 beck Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
if (i == -1)
goto err;
if (i >= buf_len) {
- buf += buf_len;
+ buf += buf_len - 1;
buf_len = 0;
} else {
buf += i;
if (i == -1)
goto err;
if (i >= buf_len) {
- buf += buf_len;
+ buf += buf_len - 1;
buf_len = 0;
} else {
buf += i;
-/* $OpenBSD: obj_dat.c,v 1.31 2014/08/08 04:53:43 guenther Exp $ */
+/* $OpenBSD: obj_dat.c,v 1.32 2015/10/14 21:02:08 beck Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
if (i == -1)
goto err;
if (i >= buf_len) {
- buf += buf_len;
+ buf += buf_len - 1;
buf_len = 0;
} else {
buf += i;
if (i == -1)
goto err;
if (i >= buf_len) {
- buf += buf_len;
+ buf += buf_len - 1;
buf_len = 0;
} else {
buf += i;