git: sys/netinet/in_pcb.c: Fix a broken range check.

Sascha Wildner swildner at crater.dragonflybsd.org
Tue May 18 03:17:33 PDT 2010


commit 22641a84b8281036978166784d7791a1c2a31a13
Author: Sascha Wildner <saw at online.de>
Date:   Tue May 18 12:15:40 2010 +0200

    sys/netinet/in_pcb.c: Fix a broken range check.
    
    Back in 2004, in commit 80dff869, RANGECHK() was changed from a macro
    to an inline function. This broke the test since the passed 'var' could
    not be changed by the inline unless a pointer was used.
    
    Instead of changing to using pointers now (or adding a return value to
    RANGECHK()), revert to using a macro again.

Summary of changes:
 sys/netinet/in_pcb.c |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/22641a84b8281036978166784d7791a1c2a31a13


-- 
DragonFly BSD source repository





More information about the Commits mailing list