fixed esn type
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 20 Jul 2011 21:11:19 +0000 (23:11 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 20 Jul 2011 21:11:19 +0000 (23:11 +0200)
src/libcharon/plugins/stroke/stroke_list.c

index e955f9c..cbe10e1 100644 (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");
                                }