MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sctp_free_sharedkey

Function sctp_free_sharedkey

freebsd/netinet/sctp_auth.c:474–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474void
475sctp_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
487sctp_sharedkey_t *
488sctp_find_sharedkey(struct sctp_keyhead *shared_keys, uint16_t key_id)

Callers 8

sctp_inpcb_freeFunction · 0.85
sctp_free_assocFunction · 0.85
sctp_insert_sharedkeyFunction · 0.85
sctp_auth_key_releaseFunction · 0.85
sctp_copy_skeylistFunction · 0.85
sctp_delete_sharedkeyFunction · 0.85
sctp_delete_sharedkey_epFunction · 0.85
sctp_deact_sharedkey_epFunction · 0.85

Calls 1

sctp_free_keyFunction · 0.85

Tested by

no test coverage detected