]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r345866
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 18 Apr 2019 02:54:07 +0000 (02:54 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 18 Apr 2019 02:54:07 +0000 (02:54 +0000)
commit8a7d1c27d1bd31c3730df964dec8a9dd7dceff0e
tree215757661a5465f384bd4abe5d8e403aee9d391d
parent06ec69c59f7b6a4d64d7950c5a440aabb81d5c70
MFC: r345866
Fix malloc stats for the RPCSEC_GSS server code when DEBUG is enabled.

The code enabled when "DEBUG" is defined uses mem_alloc(), which is a
malloc(.., M_RPC, M_WAITOK | M_ZERO), but then calls gss_release_buffer()
which does a free(.., M_GSSAPI) to free the memory.
This patch fixes the problem by replacing mem_alloc() with a
malloc(.., M_GSSAPI, M_WAITOK | M_ZERO).
This bug affects almost no one, since the sources are not normally built
with "DEBUG" defined.

git-svn-id: svn://svn.freebsd.org/base/stable/10@346344 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/rpc/rpcsec_gss/svc_rpcsec_gss.c