]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
there can't be a previous bio
authorAlan T. DeKok <aland@freeradius.org>
Sat, 30 Mar 2024 20:31:39 +0000 (16:31 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 30 Mar 2024 22:13:47 +0000 (18:13 -0400)
src/lib/bio/base.h

index 93a8894839970c17e06bfd69dd801955ae5c294c..7c63f522373cd9d340f230336b2e3cdf62988d0f 100644 (file)
@@ -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);
 }