]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Eliminate extra increment of _dbuff->p in the fr_dbuff_<type>_in() functions
authorJames Jones <jejones3141@gmail.com>
Tue, 2 Jun 2020 18:40:30 +0000 (13:40 -0500)
committerAlan DeKok <aland@freeradius.org>
Tue, 2 Jun 2020 20:55:39 +0000 (16:55 -0400)
src/lib/util/dbuff.h

index 19c27387705695376eee904fe7a9469dcb8756ec..236728348df875ca7283bf5f3398e8e8e4b144c5 100644 (file)
@@ -398,7 +398,6 @@ static inline ssize_t fr_dbuff_##_type##_in(fr_dbuff_t *dbuff, _type##_t num) \
        fr_assert(!dbuff->is_const); \
        if (sizeof(_type##_t) > freespace) return -(sizeof(_type##_t) - freespace); \
        fr_net_from_##_type(dbuff->p, num); \
-       dbuff->p += sizeof(_type##_t); \
        return _fr_dbuff_advance(dbuff, sizeof(_type##_t)); \
 }
 FR_DBUFF_NUM_IN_FUNC(uint16)