diff options
author | Martin Thomson <mt@lowentropy.net> | 2019-07-10 15:30:53 +1000 |
---|---|---|
committer | Martin Thomson <mt@lowentropy.net> | 2019-07-10 15:30:53 +1000 |
commit | 240aab35b62bf9769b3dd0b99916eccaed7c79d6 (patch) | |
tree | 7a5809bcd2e0b746feeb7ea2b9736d73e689b4a6 /cpputil | |
parent | 276c8afb63cd245b3e2971a93ce5cfc040325f70 (diff) | |
download | nss-hg-240aab35b62bf9769b3dd0b99916eccaed7c79d6.tar.gz |
Bug 1564727 - RSS PSS SPKI for delegated credentials, r=kjacobs
Differential Revision: https://phabricator.services.mozilla.com/D37521
Diffstat (limited to 'cpputil')
-rw-r--r-- | cpputil/nss_scoped_ptrs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpputil/nss_scoped_ptrs.h b/cpputil/nss_scoped_ptrs.h index 9b1fbb47f..24116b63f 100644 --- a/cpputil/nss_scoped_ptrs.h +++ b/cpputil/nss_scoped_ptrs.h @@ -90,7 +90,8 @@ SCOPED(SECMODModule); struct StackSECItem : public SECItem { StackSECItem() : SECItem({siBuffer, nullptr, 0}) {} - ~StackSECItem() { SECITEM_FreeItem(this, PR_FALSE); } + ~StackSECItem() { Reset(); } + void Reset() { SECITEM_FreeItem(this, PR_FALSE); } }; #endif // nss_scoped_ptrs_h__ |