| 59 | } |
| 60 | |
| 61 | sctp_auth_chklist_t * |
| 62 | sctp_alloc_chunklist(void) |
| 63 | { |
| 64 | sctp_auth_chklist_t *chklist; |
| 65 | |
| 66 | SCTP_MALLOC(chklist, sctp_auth_chklist_t *, sizeof(*chklist), |
| 67 | SCTP_M_AUTH_CL); |
| 68 | if (chklist == NULL) { |
| 69 | SCTPDBG(SCTP_DEBUG_AUTH1, "sctp_alloc_chunklist: failed to get memory!\n"); |
| 70 | } else { |
| 71 | sctp_clear_chunklist(chklist); |
| 72 | } |
| 73 | return (chklist); |
| 74 | } |
| 75 | |
| 76 | void |
| 77 | sctp_free_chunklist(sctp_auth_chklist_t *list) |
no test coverage detected