aboutsummaryrefslogtreecommitdiff
path: root/website/static/security/patches/SA-20:14/sctp.patch
blob: 43532878ed9ff50272a28fd8a2e7d475653dff7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- sys/netinet/sctp_auth.c.orig
+++ sys/netinet/sctp_auth.c
@@ -523,7 +523,7 @@
 		} else if (new_skey->keyid == skey->keyid) {
 			/* replace the existing key */
 			/* verify this key *can* be replaced */
-			if ((skey->deactivated) && (skey->refcount > 1)) {
+			if ((skey->deactivated) || (skey->refcount > 1)) {
 				SCTPDBG(SCTP_DEBUG_AUTH1,
 				    "can't replace shared key id %u\n",
 				    new_skey->keyid);