| 81 | } |
| 82 | |
| 83 | sctp_auth_chklist_t * |
| 84 | sctp_copy_chunklist(sctp_auth_chklist_t *list) |
| 85 | { |
| 86 | sctp_auth_chklist_t *new_list; |
| 87 | |
| 88 | if (list == NULL) |
| 89 | return (NULL); |
| 90 | |
| 91 | /* get a new list */ |
| 92 | new_list = sctp_alloc_chunklist(); |
| 93 | if (new_list == NULL) |
| 94 | return (NULL); |
| 95 | /* copy it */ |
| 96 | memcpy(new_list, list, sizeof(*new_list)); |
| 97 | |
| 98 | return (new_list); |
| 99 | } |
| 100 | |
| 101 | /* |
| 102 | * add a chunk to the required chunks list |
no test coverage detected