Skip to content

Commit 802e137

Browse files
committed
dtls.c: fix formatting of GET_VAR_FIELD.
Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
1 parent 42732c4 commit 802e137

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

dtls.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -240,18 +240,18 @@ memarray_t dtlscontext_storage;
240240
* \param A alert description in case of a length violation
241241
* \param M logging message in case of a length violation
242242
*/
243-
#define GET_VAR_FIELD(VL, P, L, T, A, M) { \
244-
if (L < sizeof(T)) { \
245-
dtls_info("%s: field length exceeds buffer", M); \
246-
return dtls_alert_fatal_create(A); \
247-
} \
248-
VL = dtls_ ## T ## _to_int(P); \
249-
L -= sizeof(T); \
250-
P += sizeof(T); \
251-
if (L < VL) { \
252-
dtls_info("%s: field value exceeds buffer", M); \
253-
return dtls_alert_fatal_create(A); \
254-
} \
243+
#define GET_VAR_FIELD(VL, P, L, T, A, M) { \
244+
if (L < sizeof(T)) { \
245+
dtls_info("%s: field length exceeds buffer", M); \
246+
return dtls_alert_fatal_create(A); \
247+
} \
248+
VL = dtls_ ## T ## _to_int(P); \
249+
L -= sizeof(T); \
250+
P += sizeof(T); \
251+
if (L < VL) { \
252+
dtls_info("%s: field value exceeds buffer", M); \
253+
return dtls_alert_fatal_create(A); \
254+
} \
255255
}
256256

257257
/* some constants for the PRF */

0 commit comments

Comments
 (0)