]> err.no Git - linux-2.6/commit
RPCSEC_GSS: fix leak in krb5 code caused by superfluous kmalloc
authorJ. Bruce Fields <bfields@fieldses.org>
Tue, 18 Apr 2006 17:14:02 +0000 (13:14 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 19 Apr 2006 16:43:46 +0000 (12:43 -0400)
commitd4a30e7e66c004da26dfe5229af7c10fe9853a7a
tree87f23ec83c3069a5562e73f883d1367d2f37ba51
parent8bbde0e6d52265158ee9625f383500c1a7d09ba9
RPCSEC_GSS: fix leak in krb5 code caused by superfluous kmalloc

I was sloppy when generating a previous patch; I modified the callers of
krb5_make_checksum() to allocate memory for the buffer where the result is
returned, then forgot to modify krb5_make_checksum to stop allocating that
memory itself.  The result is a per-packet memory leak.  This fixes the
problem by removing the now-superfluous kmalloc().

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/auth_gss/gss_krb5_crypto.c