c11 safe string handling support
[vpp.git] / src / vnet / sctp / sctp_output.c
index e69ff5c..2b65d97 100644 (file)
@@ -1378,8 +1378,6 @@ sctp_push_hdr_i (sctp_connection_t * sctp_conn, vlib_buffer_t * b,
   u16 bytes_to_add = sizeof (sctp_payload_data_chunk_t);
   u16 chunk_length = data_len + bytes_to_add - sizeof (sctp_header_t);
 
-  bytes_to_add += vnet_sctp_calculate_padding (bytes_to_add + data_len);
-
   sctp_payload_data_chunk_t *data_chunk =
     vlib_buffer_push_uninit (b, bytes_to_add);
 
@@ -1849,7 +1847,7 @@ sctp46_output_inline (vlib_main_t * vm,
                }
              else
                {
-                 memset (&t0->sctp_header, 0, sizeof (t0->sctp_header));
+                 clib_memset (&t0->sctp_header, 0, sizeof (t0->sctp_header));
                }
              clib_memcpy (&t0->sctp_connection, sctp_conn,
                           sizeof (t0->sctp_connection));