From: Alan T. DeKok Date: Sat, 30 Mar 2024 20:31:39 +0000 (-0400) Subject: there can't be a previous bio X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff5b96c506c7592e4021f1dafd9744f18b70911b;p=thirdparty%2Ffreeradius-server.git there can't be a previous bio --- diff --git a/src/lib/bio/base.h b/src/lib/bio/base.h index 93a88948399..7c63f522373 100644 --- a/src/lib/bio/base.h +++ b/src/lib/bio/base.h @@ -145,7 +145,7 @@ static inline ssize_t CC_HINT(nonnull(1,3)) fr_bio_read(fr_bio_t *bio, void *pac /* * We cannot read from the middle of a chain. */ - fr_assert(!fr_bio_next(bio)); + fr_assert(!fr_bio_prev(bio)); return bio->read(bio, packet_ctx, buffer, size); }