]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: r345866
authorrmacklem <rmacklem@FreeBSD.org>
Thu, 18 Apr 2019 02:47:59 +0000 (02:47 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Thu, 18 Apr 2019 02:47:59 +0000 (02:47 +0000)
commit2f6046c86bac91944f224b244515f657c7408d27
tree986c6b87f38b1a49683d5b83f9376b0f62725383
parent7c3d723075594e3150f5c4c4b360a9587b8a08fd
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.
sys/rpc/rpcsec_gss/svc_rpcsec_gss.c