pluto: Clarified parsing of long durations.

This commit is contained in:
Tobias Brunner
2011-04-19 13:48:50 +02:00
parent 1c004bebd8
commit 75cf0cc012
+1 -1
View File
@@ -591,7 +591,7 @@ static u_int32_t decode_long_duration(pb_stream *pbs)
if (pbs_left(pbs) > sizeof(val))
{
/* "clamp" too large value to max representable value */
val -= 1; /* portable way to get to maximum value */
val = UINT32_MAX;
DBG(DBG_PARSING, DBG_log(" too large duration clamped to: %lu"
, (unsigned long)val));
}