| 472 | } |
| 473 | |
| 474 | void |
| 475 | sctp_free_sharedkey(sctp_sharedkey_t *skey) |
| 476 | { |
| 477 | if (skey == NULL) |
| 478 | return; |
| 479 | |
| 480 | if (SCTP_DECREMENT_AND_CHECK_REFCOUNT(&skey->refcount)) { |
| 481 | if (skey->key != NULL) |
| 482 | sctp_free_key(skey->key); |
| 483 | SCTP_FREE(skey, SCTP_M_AUTH_KY); |
| 484 | } |
| 485 | } |
| 486 | |
| 487 | sctp_sharedkey_t * |
| 488 | sctp_find_sharedkey(struct sctp_keyhead *shared_keys, uint16_t key_id) |
no test coverage detected