]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Print out log message before validation
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 7 Jun 2015 15:06:27 +0000 (11:06 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 7 Jun 2015 15:24:48 +0000 (11:24 -0400)
src/modules/rlm_eap/libeap/eap_tls.c

index 56f1ffc7c5ee4c848484ce4a997c77062099c8d6..438f8a91f20bf10223d251f5719bd0b97ddc5282 100644 (file)
@@ -420,6 +420,9 @@ static fr_tls_status_t eaptls_verify(eap_handler_t *handler)
                                return FR_TLS_FIRST_FRAGMENT;
                        }
 
+                       RDEBUG2("Got additional TLS record fragment with length (%zu bytes).  "
+                               "Peer indicated more fragments to follow", frag_len);
+
                        /*
                         *      Check we've not exceeded the originally indicated TLS record size.
                         */
@@ -430,8 +433,6 @@ static fr_tls_status_t eaptls_verify(eap_handler_t *handler)
                                return FR_TLS_INVALID;
                        }
 
-                       RDEBUG2("Got additional TLS record fragment with length (%zu bytes).  "
-                               "Peer indicated more fragments to follow", frag_len);
                        return FR_TLS_MORE_FRAGMENTS_WITH_LENGTH;
                }