From 9b4fe9cb6a3fd5b562f036d9bf405f30c095808e Mon Sep 17 00:00:00 2001 From: Dan McDonald Date: Tue, 1 Aug 2017 20:50:35 -0400 Subject: [PATCH] 8554 Small ipsec_alginfo_t leak when zones shutdown Reviewed by: Jason King Approved by: Richard Lowe --- usr/src/uts/common/inet/ip/spd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr/src/uts/common/inet/ip/spd.c b/usr/src/uts/common/inet/ip/spd.c index 4c51307b13..cdafc151b6 100644 --- a/usr/src/uts/common/inet/ip/spd.c +++ b/usr/src/uts/common/inet/ip/spd.c @@ -416,9 +416,7 @@ ipsec_stack_fini(netstackid_t stackid, void *arg) rw_enter(&ipss->ipsec_alg_lock, RW_WRITER); for (algtype = 0; algtype < IPSEC_NALGTYPES; algtype ++) { - int nalgs = ipss->ipsec_nalgs[algtype]; - - for (i = 0; i < nalgs; i++) { + for (i = 0; i < IPSEC_MAX_ALGS; i++) { if (ipss->ipsec_alglists[algtype][i] != NULL) ipsec_alg_unreg(algtype, i, ns); } -- 2.11.4.GIT