fixed esn type

This commit is contained in:
Andreas Steffen 2011-07-20 23:11:19 +02:00
parent 9c67f5ff54
commit d33f6f7dba
1 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ static void log_child_sa(FILE *out, child_sa_t *child_sa, bool all)
{
u_int16_t encr_alg = ENCR_UNDEFINED, int_alg = AUTH_UNDEFINED;
u_int16_t encr_size = 0, int_size = 0;
bool esn = FALSE;
u_int16_t esn = NO_EXT_SEQ_NUMBERS;
proposal->get_algorithm(proposal, ENCRYPTION_ALGORITHM,
&encr_alg, &encr_size);
@ -247,7 +247,7 @@ static void log_child_sa(FILE *out, child_sa_t *child_sa, bool all)
fprintf(out, "_%u", int_size);
}
}
if (esn)
if (esn == EXT_SEQ_NUMBERS)
{
fprintf(out, "/ESN");
}