git: keyserv(8): Fix sizeof() of a pointer.

Sascha Wildner swildner at crater.dragonflybsd.org
Mon Feb 16 11:13:19 PST 2015


commit 14781434ad0717f2d5aa5dec62db4b70b1fc4b6f
Author: Sascha Wildner <saw at online.de>
Date:   Mon Feb 16 20:12:56 2015 +0100

    keyserv(8): Fix sizeof() of a pointer.
    
    Commit 748a243b13dd295c04c9e06923a801157f6943e5 tried to fix this, but
    did it wrongly, because xdrproc_t is a function pointer type and the
    sizeof will still give 8.
    
    The correct way is to use keybuf which is the type and has the correct
    size (aka HEXKEYBYTES). It is done like this in key_set_1_svc_prog()
    already.

Summary of changes:
 usr.sbin/keyserv/keyserv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/14781434ad0717f2d5aa5dec62db4b70b1fc4b6f


-- 
DragonFly BSD source repository



More information about the Commits mailing list