Blame SOURCES/libreswan-3.15-s90-gcc.patch
|
|
738028 |
diff --git a/programs/pluto/ikev2_parent.c b/programs/pluto/ikev2_parent.c
|
|
|
738028 |
index 8fd0bba..db890f5 100644
|
|
|
738028 |
--- a/programs/pluto/ikev2_parent.c
|
|
|
738028 |
+++ b/programs/pluto/ikev2_parent.c
|
|
|
738028 |
@@ -1596,8 +1596,8 @@ static stf_status ikev2_verify_and_decrypt_sk_payload(struct msg_digest *md,
|
|
|
738028 |
*/
|
|
|
738028 |
u_char *payload_end = chunk->ptr + chunk->len;
|
|
|
738028 |
if (payload_end < (wire_iv_start + wire_iv_size + 1 + integ_size)) {
|
|
|
738028 |
- libreswan_log("encrypted payload impossibly short (%zu)",
|
|
|
738028 |
- payload_end - wire_iv_start);
|
|
|
738028 |
+ libreswan_log("encrypted payload impossibly short (%tu)",
|
|
|
738028 |
+ payload_end - wire_iv_start);
|
|
|
738028 |
return STF_FAIL;
|
|
|
738028 |
}
|
|
|
738028 |
|
|
|
738028 |
@@ -4105,9 +4105,9 @@ stf_status process_encrypted_informational_ikev2(struct msg_digest *md)
|
|
|
738028 |
}
|
|
|
738028 |
|
|
|
738028 |
if (v2del->isad_nrspi * v2del->isad_spisize != pbs_left(&p->pbs)) {
|
|
|
738028 |
- libreswan_log("IPsec Delete Notification payload size is %tu but %u is required",
|
|
|
738028 |
- pbs_left(&p->pbs),
|
|
|
738028 |
- v2del->isad_nrspi * v2del->isad_spisize);
|
|
|
738028 |
+ libreswan_log("IPsec Delete Notification payload size is %lu but %lu is required",
|
|
|
738028 |
+ (long unsigned int) pbs_left(&p->pbs),
|
|
|
738028 |
+ (long unsigned int) (v2del->isad_nrspi * v2del->isad_spisize));
|
|
|
738028 |
return STF_FAIL + v2N_INVALID_SYNTAX;
|
|
|
738028 |
}
|
|
|
738028 |
|