]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: fix crypto key null deref, memory leak
authorSylvain Munaut <tnt@246tNt.com>
Thu, 2 Aug 2012 16:12:59 +0000 (09:12 -0700)
committerSage Weil <sage@inktank.com>
Thu, 2 Aug 2012 16:19:20 +0000 (09:19 -0700)
commit7ef03b2e3c524b349fbb5dfd4bb56711f2f13b5d
tree9f38d4c5ac83b77812692ccd2db6a880bf63cf9d
parentecae4677115d585f545347f38106ac6b2337d9e7
libceph: fix crypto key null deref, memory leak

Avoid crashing if the crypto key payload was NULL, as when it was not correctly
allocated and initialized.  Also, avoid leaking it.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
net/ceph/crypto.c
net/ceph/crypto.h