keyserv(8): Fix sizeof() of a pointer.
authorSascha Wildner <saw@online.de>
Mon, 16 Feb 2015 19:12:56 +0000 (20:12 +0100)
committerSascha Wildner <saw@online.de>
Mon, 16 Feb 2015 19:12:56 +0000 (20:12 +0100)
commit14781434ad0717f2d5aa5dec62db4b70b1fc4b6f
treeeb58c427d0f750e3e102f214342f8637b76fc416
parentcf09d62635d724ca4d9f4d37ae37f71f473d8469
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.
usr.sbin/keyserv/keyserv.c