diff options
author | Dan McDonald <danmcd@joyent.com> | 2018-01-08 19:57:12 -0500 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2018-01-18 11:25:00 -0500 |
commit | 620632424515d984b96f0a398e2d0cba9412182c (patch) | |
tree | b7babb8c3761c6c45bdabd174b6ed772a6893830 | |
parent | cbc1abb4d4821ea30c4fe7712e0ada83b25b0151 (diff) | |
download | illumos-joyent-620632424515d984b96f0a398e2d0cba9412182c.tar.gz |
8560 Reference leak on ipsec_action_t
Reviewed by: Norm Jacobs <naj@snapcon.com>
Reviewed by: Andy Fiddaman <omnios@citrus-it.net>
Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r-- | usr/src/uts/common/inet/ip/spd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/src/uts/common/inet/ip/spd.c b/usr/src/uts/common/inet/ip/spd.c index 841c345013..d703170c9f 100644 --- a/usr/src/uts/common/inet/ip/spd.c +++ b/usr/src/uts/common/inet/ip/spd.c @@ -23,7 +23,7 @@ * Use is subject to license terms. * Copyright (c) 2012 Nexenta Systems, Inc. All rights reserved. * Copyright (c) 2016 by Delphix. All rights reserved. - * Copyright (c) 2017, Joyent, Inc. + * Copyright (c) 2018, Joyent, Inc. */ /* @@ -4123,6 +4123,11 @@ ipsec_in_release_refs(ip_recv_attr_t *ira) IPSA_REFRELE(ira->ira_ipsec_esp_sa); ira->ira_ipsec_esp_sa = NULL; } + if (ira->ira_ipsec_action != NULL) { + IPACT_REFRELE(ira->ira_ipsec_action); + ira->ira_ipsec_action = NULL; + } + ira->ira_flags &= ~IRAF_IPSEC_SECURE; } |