freebsd-dev/sys/rpc/rpcsec_gss
Rick Macklem 52cab12c09 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.

Submitted by:	peter@ifm.liu.se
MFC after:	2 weeks
2019-04-04 01:23:06 +00:00
..
rpcsec_gss_conf.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
rpcsec_gss_int.h
rpcsec_gss_misc.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
rpcsec_gss_prot.c
rpcsec_gss.c
svc_rpcsec_gss.c Fix malloc stats for the RPCSEC_GSS server code when DEBUG is enabled. 2019-04-04 01:23:06 +00:00