correct logic in ssl_msg

Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
diff --git a/library/ssl_msg.c b/library/ssl_msg.c
index 5eeb154..731cbc8 100644
--- a/library/ssl_msg.c
+++ b/library/ssl_msg.c
@@ -712,21 +712,6 @@
 #if defined(MBEDTLS_SSL_DTLS_CONNECTION_ID)
 
     if (rec->cid_len != 0) {
-        // CID
-        memcpy(cur, rec->cid, rec->cid_len);
-        cur += rec->cid_len;
-
-        // cid_length
-        *cur = rec->cid_len;
-        cur++;
-
-        // length of inner plaintext
-        MBEDTLS_PUT_UINT16_BE(ad_len_field, cur, 0);
-        cur += 2;
-    } else
-#elif defined(MBEDTLS_SSL_DTLS_CONNECTION_ID)
-
-    if (rec->cid_len != 0) {
         // epoch + sequence number
         memcpy(cur, rec->ctr, sizeof(rec->ctr));
         cur += sizeof(rec->ctr);